{"record":{"id":"a69eab2c0ba8b6fc","repo":"pentaho/pentaho-kettle","slug":"unable-to-close-file","errorCode":null,"errorMessage":"Unable to close file '","messagePattern":"Unable to close file '","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInput.java","lineNumber":742,"sourceCode":"\n      return true;\n\n    }\n    return false;\n  }\n\n  public void closeFile() throws KettleException {\n\n    try {\n      if ( data.gzis != null ) {\n        data.gzis.close();\n      }\n      if ( data.fis != null ) {\n        incrementLinesUpdated();\n        data.fis.close();\n      }\n    } catch ( IOException e ) {\n      throw new KettleException( \"Unable to close file '\" + data.filenames[data.filenr - 1], e );\n    }\n  }\n\n}\n","sourceCodeStart":724,"sourceCodeEnd":747,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInput.java#L724-L747","documentation":"Wrapper error in ParGzipCsvInput.closeFile: closing the gzip input stream or underlying file input stream threw an IOException. The filename being closed is included in the message and the cause is chained; fires from dispose() or when switching to the next file.","triggerScenarios":"Thrown at engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInput.java:742 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check file system health and that the file wasn't externally locked or deleted mid-run","Close streams defensively earlier if the file is known to be truncated","Inspect the chained IOException for the underlying close failure"],"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"}