{"record":{"id":"79d60ede61c0e7c2","repo":"apache/hadoop","slug":"abortable-abort-is-not-supported","errorCode":null,"errorMessage":"Abortable.abort() is not supported","messagePattern":"Abortable\\.abort\\(\\) is not supported","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java","lineNumber":184,"sourceCode":"   */\n  @Override\n  public IOStatistics getIOStatistics() {\n    return IOStatisticsSupport.retrieveIOStatistics(wrappedStream);\n  }\n\n  /**\n   * Invoke {@code abort()} on the wrapped stream if it\n   * is Abortable, otherwise raise an\n   * {@code UnsupportedOperationException}.\n   * @throws UnsupportedOperationException if not available.\n   * @return the result.\n   */\n  @Override\n  public AbortableResult abort() {\n    if (wrappedStream instanceof Abortable) {\n      return ((Abortable) wrappedStream).abort();\n    } else {\n      throw new UnsupportedOperationException(\n          FSExceptionMessages.ABORTABLE_UNSUPPORTED);\n    }\n  }\n}\n","sourceCodeStart":166,"sourceCodeEnd":189,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java#L166-L189","documentation":"Error \"Abortable.abort() is not supported\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java:184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the stream implements Abortable before calling abort().","For filesystems without abort support (e.g. non-S3A), close the stream and delete the partial output explicitly."],"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"}