{"record":{"id":"035f9b1609a7372b","repo":"apache/hadoop","slug":"skip-not-supported-for-ifileinputstream","errorCode":null,"errorMessage":"Skip not supported for IFileInputStream","messagePattern":"Skip not supported for IFileInputStream","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/IFileInputStream.java","lineNumber":129,"sourceCode":"    if (curReadahead != null) {\n      curReadahead.cancel();\n    }\n    if (currentOffset < dataLength) {\n      byte[] t = new byte[Math.min((int)\n            (Integer.MAX_VALUE & (dataLength - currentOffset)), 32 * 1024)];\n      while (currentOffset < dataLength) {\n        int n = read(t, 0, t.length);\n        if (0 == n) {\n          throw new EOFException(\"Could not validate checksum\");\n        }\n      }\n    }\n    in.close();\n  }\n  \n  @Override\n  public long skip(long n) throws IOException {\n   throw new IOException(\"Skip not supported for IFileInputStream\");\n  }\n  \n  public long getPosition() {\n    return (currentOffset >= dataLength) ? dataLength : currentOffset;\n  }\n  \n  public long getSize() {\n    return checksumSize;\n  }\n  \n  /**\n   * Read bytes from the stream.\n   * At EOF, checksum is validated, but the checksum\n   * bytes are not passed back in the buffer. \n   */\n  public int read(byte[] b, int off, int len) throws IOException {\n\n    if (currentOffset >= dataLength) {","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/IFileInputStream.java#L111-L147","documentation":"Error \"Skip not supported for IFileInputStream\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/IFileInputStream.java:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call skip() on IFileInputStream; read and discard bytes manually to advance the stream."],"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"}