{"record":{"id":"3a68e5ed50481684","repo":"apache/flink","slug":"exception-in-close-3a68e5","errorCode":null,"errorMessage":"Exception in close","messagePattern":"Exception in close","errorType":"exception","errorClass":"TableException","httpStatus":null,"severity":"error","filePath":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/batch/compact/BatchFileWriter.java","lineNumber":131,"sourceCode":"        try {\n            writer.write(element.getValue());\n        } catch (Exception e) {\n            throw new TableException(\"Exception in writeRecord\", e);\n        }\n    }\n\n    @Override\n    public void endInput() throws Exception {}\n\n    @Override\n    public void close() throws Exception {\n        try {\n            staticPartitions.clear();\n            if (writer != null) {\n                writer.close();\n            }\n        } catch (Exception e) {\n            throw new TableException(\"Exception in close\", e);\n        }\n    }\n}\n","sourceCodeStart":113,"sourceCodeEnd":135,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/batch/compact/BatchFileWriter.java#L113-L135","documentation":"Error \"Exception in close\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Exception in close.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Exception in close.","solutions":["Address the cause reported by the error message: Exception in close","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Exception in close\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}