{"record":{"id":"b88db99c9de02288","repo":"apache/hadoop","slug":"unable-to-rewind-the-stream","errorCode":null,"errorMessage":"Unable to rewind the stream","messagePattern":"Unable to rewind the stream","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/RewindableInputStream.java","lineNumber":75,"sourceCode":"    return input.read();\n  }\n\n  @Override\n  public int read(byte[] buffer, int offset, int length) throws IOException {\n    return input.read(buffer, offset, length);\n  }\n\n  @Override\n  public void close() throws IOException {\n    input.close();\n  }\n\n  public InputStream rewind() throws IOException {\n    try {\n      input.reset();\n      return this;\n    } catch (IOException e) {\n      throw new IOException(\"Unable to rewind the stream\", e);\n    }\n  }\n}\n","sourceCodeStart":57,"sourceCodeEnd":79,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/RewindableInputStream.java#L57-L79","documentation":"Error \"Unable to rewind the stream\" thrown in apache/hadoop.","triggerScenarios":"RewindableInputStream.reset() is called when the buffered data needed to rewind has been discarded (buffer overflow), so the stream cannot be rewound.","commonSituations":"See trigger scenarios.","solutions":["Ensure the underlying stream supports mark/reset and that the mark limit was not exceeded before rewinding."],"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"}