{"record":{"id":"be9ec03fca181b18","repo":"apache/hadoop","slug":"operation-is-not-supported-be9ec0","errorCode":null,"errorMessage":"Operation \"{}\" is not supported","messagePattern":"Operation \"(.+?)\" is not supported","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java","lineNumber":837,"sourceCode":"   * operation.\n   *\n   * @param op Category of the operation to check.\n   * @param supported If the operation is supported or not. If not, it will\n   *                  throw an UnsupportedOperationException.\n   * @throws StandbyException If the Router is in safe mode and cannot serve\n   *                           client requests.\n   * @throws UnsupportedOperationException If the operation is not supported.\n   */\n  public void checkOperation(OperationCategory op, boolean supported)\n      throws StandbyException, UnsupportedOperationException {\n    checkOperation(op);\n\n    if (!supported) {\n      if (rpcMonitor != null) {\n        rpcMonitor.proxyOpNotImplemented();\n      }\n      String methodName = getMethodName();\n      throw new UnsupportedOperationException(\n          \"Operation \\\"\" + methodName + \"\\\" is not supported\");\n    }\n  }\n\n  /**\n   * Check if the Router is in safe mode. We should only see READ, WRITE, and\n   * UNCHECKED. This function should be called by all ClientProtocol functions.\n   *\n   * @param op Category of the operation to check.\n   * @throws StandbyException If the Router is in safe mode and cannot serve\n   *                           client requests.\n   */\n  public void checkOperation(OperationCategory op)\n      throws StandbyException {\n    // Log the function we are currently calling.\n    if (rpcMonitor != null) {\n      rpcMonitor.startOp();\n    }","sourceCodeStart":819,"sourceCodeEnd":855,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java#L819-L855","documentation":"Error \"Operation \"{}\" is not supported\" thrown in apache/hadoop.","triggerScenarios":"Client invoked an RPC method that RouterRpcServer explicitly does not support.","commonSituations":"Clients calling advanced/less-common HDFS APIs (e.g. certain snapshot, cache, or erasure-coding ops) through the Router.","solutions":["Use an operation the Router supports; consult the RouterClientProtocol surface for the supported set.","Issue the unsupported call directly against the target namenode instead of the Router.","Upgrade Hadoop if the operation is supported by Routers in a newer release."],"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"}