{"record":{"id":"b94033d8976f2912","repo":"apache/hadoop","slug":"not-supported-b94033","errorCode":null,"errorMessage":"{} not supported.","messagePattern":"(.+?) not supported\\.","errorType":"exception","errorClass":"UnsupportedActionException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java","lineNumber":9255,"sourceCode":"      return \"checkRestoreFailedStorage\";\n    } else if (mode.equals(\"true\")) {\n      return \"enableRestoreFailedStorage\";\n    } else {\n      return \"disableRestoreFailedStorage\";\n    }\n  }\n\n  /**\n   * Check whether operation is supported.\n   * @param operationName the name of operation.\n   * @throws UnsupportedActionException throws UAE if not supported.\n   */\n  public void checkErasureCodingSupported(String operationName)\n      throws UnsupportedActionException {\n    if (!NameNodeLayoutVersion.supports(\n        NameNodeLayoutVersion.Feature.ERASURE_CODING,\n        getEffectiveLayoutVersion())) {\n      throw new UnsupportedActionException(operationName + \" not supported.\");\n    }\n  }\n\n  private boolean isObserver() {\n    return haEnabled && haContext != null && haContext.getState().getServiceState() == OBSERVER;\n  }\n\n  private void checkBlockLocationsWhenObserver(LocatedBlocks blocks, String src)\n      throws ObserverRetryOnActiveException {\n    if (blocks == null) {\n      return;\n    }\n    List<LocatedBlock> locatedBlockList = blocks.getLocatedBlocks();\n    if (locatedBlockList != null) {\n      for (LocatedBlock b : locatedBlockList) {\n        if (b.getLocations() == null || b.getLocations().length == 0) {\n          throw new ObserverRetryOnActiveException(\"Zero blocklocations for \" + src);\n        }","sourceCodeStart":9237,"sourceCodeEnd":9273,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java#L9237-L9273","documentation":"Error \"{} not supported.\" thrown in apache/hadoop.","triggerScenarios":"A client invokes an operation or option that this NameNode version or state does not support.","commonSituations":"Calling a newer client protocol feature against an older NameNode, or using a disabled feature.","solutions":["Remove the unsupported option from the request or upgrade the cluster; the named operation is not supported by this NameNode."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}