{"record":{"id":"f31432395e8a4077","repo":"apache/hadoop","slug":"does-not-support-method-f31432","errorCode":null,"errorMessage":"{} does not support method {}","messagePattern":"(.+?) does not support method (.+?)","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java","lineNumber":4870,"sourceCode":"      // surface later\n      result.completeExceptionally(tx);\n    }\n    return result;\n  }\n\n  /**\n   * Helper method that throws an {@link UnsupportedOperationException} for the\n   * current {@link FileSystem} method being called.\n   */\n  private void methodNotSupported() {\n    // The order of the stacktrace elements is (from top to bottom):\n    //   - java.lang.Thread.getStackTrace\n    //   - org.apache.hadoop.fs.FileSystem.methodNotSupported\n    //   - <the FileSystem method>\n    // therefore, to find out the current method name, we use the element at\n    // index 2.\n    String name = Thread.currentThread().getStackTrace()[2].getMethodName();\n    throw new UnsupportedOperationException(getClass().getCanonicalName() +\n        \" does not support method \" + name);\n  }\n\n  /**\n   * Create instance of the standard {@link FSDataInputStreamBuilder} for the\n   * given filesystem and path.\n   * @param fileSystem owner\n   * @param path path to read\n   * @return a builder.\n   */\n  @InterfaceAudience.LimitedPrivate(\"Filesystems\")\n  @InterfaceStability.Unstable\n  protected static FSDataInputStreamBuilder createDataInputStreamBuilder(\n      @Nonnull final FileSystem fileSystem,\n      @Nonnull final Path path) {\n    return new FSDataInputStreamBuilder(fileSystem, path);\n  }\n","sourceCodeStart":4852,"sourceCodeEnd":4888,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java#L4852-L4888","documentation":"Error \"{} does not support method {}\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java:4870 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call this method on filesystem implementations that do not support it; check the implementation class first.","Use the supported equivalent API for the target filesystem."],"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-23T01:17:44.959Z"}