{"record":{"id":"ce131c61a65265e2","repo":"pentaho/pentaho-kettle","slug":"unable-to-read-bytes-from-the-gzipped-input-file","errorCode":null,"errorMessage":"Unable to read  bytes from the gzipped input file","messagePattern":"Unable to read  bytes from the gzipped input file","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInputData.java","lineNumber":159,"sourceCode":"      while ( bytesRead < size ) {\n        int n = gzis.read( byteBuffer, maxBuffer, leftToRead );\n        if ( n < 0 ) {\n          // EOF, nothing more to read in combination with the need to get more data means we're done.\n          //\n          eofReached = true;\n          fileReadPosition += bytesRead;\n          return bytesRead == 0;\n        }\n        bytesRead += n; // bytes read so far\n        maxBuffer += n; // that's where we ended up so far\n        leftToRead -= n; // a little bit less to read\n      }\n      fileReadPosition += bytesRead; // keep track of where we are in the file...\n\n      return false; // all OK\n\n    } catch ( IOException e ) {\n      throw new KettleException( \"Unable to read \" + size + \" bytes from the gzipped input file\", e );\n    }\n  }\n}\n","sourceCodeStart":141,"sourceCodeEnd":163,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInputData.java#L141-L163","documentation":"Wrapper error in ParGzipCsvInputData.getMoreData: reading the requested block of bytes from the gzipped input stream failed with an IOException before size bytes could be filled (EOF is handled separately by setting eofReached). The requested byte count is in the message; the cause is chained.","triggerScenarios":"Thrown at engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInputData.java:159 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the gzip file is not truncated or corrupted","Check disk/streams availability and file permissions","Inspect the chained IOException for the underlying read error"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f3058517a153da500bf4551f46d79b91bf8ec552","analyzedAt":"2026-09-13T14:04:16.340Z","contentChangedAt":"2026-09-13T14:04:16.340Z","schemaVersion":2},"datasetVersion":"2026-09-20T23:17:15.980Z"}