{"record":{"id":"c5ec84fda478b24a","repo":"apache/hadoop","slug":"reset-not-implemented","errorCode":null,"errorMessage":"reset not implemented.","messagePattern":"reset not implemented\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java","lineNumber":965,"sourceCode":"      \n      @Override\n      public synchronized  void close() throws IOException {\n        underLyingStream.close();\n        super.close();\n      }\n      \n      //not implemented\n      @Override\n      public void mark(int readLimit) {\n        // do nothing \n      }\n      \n      /**\n       * reset is not implemented\n       */\n      @Override\n      public void reset() throws IOException {\n        throw new IOException(\"reset not implemented.\");\n      }\n      \n      @Override\n      public synchronized int read() throws IOException {\n        int ret = read(oneBytebuff, 0, 1);\n        return (ret <= 0) ? -1: (oneBytebuff[0] & 0xff);\n      }\n      \n      // NB: currently this method actually never executed because\n      // java.io.DataInputStream.read(byte[]) directly delegates to \n      // method java.io.InputStream.read(byte[], int, int).\n      // However, potentially it can be invoked, so leave it intact for now.\n      @Override\n      public synchronized int read(byte[] b) throws IOException {\n        final int ret = read(b, 0, b.length);\n        return ret;\n      }\n      ","sourceCodeStart":947,"sourceCodeEnd":983,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java#L947-L983","documentation":"Error \"reset not implemented.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/HarFileSystem.java:965 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call reset() on HarFileSystem streams; close and reopen the stream to re-read.","Track position manually and use seek where supported."],"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"}