{"record":{"id":"1ebe3aef69969f91","repo":"apache/flink","slug":"postscript-too-large-at","errorCode":null,"errorMessage":"PostScript too large at {}","messagePattern":"PostScript too large at (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/writer/PhysicalWriterImpl.java","lineNumber":217,"sourceCode":"        long startPosition = out.getPos();\n        OrcProto.Footer footer = builder.build();\n        writeFileFooter(footer);\n        this.footerLength = (int) (out.getPos() - startPosition);\n    }\n\n    @Override\n    public long writePostScript(OrcProto.PostScript.Builder builder) throws IOException {\n        builder.setFooterLength(footerLength);\n        builder.setMetadataLength(metadataLength);\n\n        OrcProto.PostScript ps = builder.build();\n        // need to write this uncompressed\n        long startPosition = out.getPos();\n        ps.writeTo(out);\n        long length = out.getPos() - startPosition;\n\n        if (length > 255) {\n            throw new IllegalArgumentException(\"PostScript too large at \" + length);\n        }\n\n        out.write((int) length);\n        return out.getPos();\n    }\n\n    @Override\n    public void close() {\n        // Just release the codec but don't close the internal stream here to avoid\n        // Stream Closed or ClosedChannelException when Flink performs checkpoint.\n        OrcCodecPool.returnCodec(compress, codec);\n        codec = null;\n    }\n\n    @Override\n    public void flush() throws IOException {\n        out.flush();\n    }","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-orc/src/main/java/org/apache/flink/orc/writer/PhysicalWriterImpl.java#L199-L235","documentation":"Error \"PostScript too large at {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: PostScript too large at the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: PostScript too large at the reported value.","solutions":["Address the cause reported by the error message: PostScript too large at the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"PostScript too large at the reported value\") 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"}