{"record":{"id":"8221821ef1059c71","repo":"apache/hadoop","slug":"not-supported-by-standby-namenode","errorCode":null,"errorMessage":"Not supported by Standby Namenode.","messagePattern":"Not supported by Standby Namenode\\.","errorType":"exception","errorClass":"StandbyException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java","lineNumber":2677,"sourceCode":"  }\n\n  @Override // ReconfigurationProtocol\n  public List<String> listReconfigurableProperties() throws IOException {\n    checkNNStartup();\n    String operationName = \"listNamenodeReconfigurableProperties\";\n    namesystem.checkSuperuserPrivilege(operationName);\n    List<String> result = Lists.newArrayList(nn.getReconfigurableProperties());\n    namesystem.logAuditEvent(true, operationName, null);\n    return result;\n  }\n\n  @Override\n  public Long getNextSPSPath() throws IOException {\n    checkNNStartup();\n    String operationName = \"getNextSPSPath\";\n    namesystem.checkSuperuserPrivilege(operationName);\n    if (nn.isStandbyState()) {\n      throw new StandbyException(\"Not supported by Standby Namenode.\");\n    }\n    // Check that SPS is enabled externally\n    StoragePolicySatisfyManager spsMgr =\n        namesystem.getBlockManager().getSPSManager();\n    StoragePolicySatisfierMode spsMode = (spsMgr != null ? spsMgr.getMode()\n        : StoragePolicySatisfierMode.NONE);\n    if (spsMode != StoragePolicySatisfierMode.EXTERNAL) {\n      if (LOG.isDebugEnabled()) {\n        LOG.debug(\"SPS service mode is {}, so external SPS service is \"\n            + \"not allowed to fetch the path Ids\", spsMode);\n      }\n      throw new IOException(\"SPS service mode is \" + spsMode + \", so \"\n          + \"external SPS service is not allowed to fetch the path Ids\");\n    }\n    return namesystem.getBlockManager().getSPSManager().getNextPathId();\n  }\n\n  @Override // ClientProtocol","sourceCodeStart":2659,"sourceCodeEnd":2695,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java#L2659-L2695","documentation":"Error \"Not supported by Standby Namenode.\" thrown in apache/hadoop.","triggerScenarios":"A client or admin command targets a standby NameNode for an active-only operation.","commonSituations":"Misconfigured clients or proxies pointing at the standby after a failover.","solutions":["Issue the operation against the active NameNode; standby nodes reject this write/admin operation."],"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"}