{"record":{"id":"7d50e8e506518740","repo":"apache/flink","slug":"the-path-based-writers-do-not-support-persisting","errorCode":null,"errorMessage":"The path based writers do not support persisting","messagePattern":"The path based writers do not support persisting","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-hadoop-bulk/src/main/java/org/apache/flink/formats/hadoop/bulk/HadoopPathBasedPartFileWriter.java","lineNumber":65,"sourceCode":"            HadoopPathBasedBulkWriter<IN> writer,\n            HadoopFileCommitter fileCommitter,\n            long createTime) {\n\n        super(bucketID, createTime);\n\n        this.writer = writer;\n        this.fileCommitter = fileCommitter;\n    }\n\n    @Override\n    public void write(IN element, long currentTime) throws IOException {\n        writer.addElement(element);\n        markWrite(currentTime);\n    }\n\n    @Override\n    public InProgressFileRecoverable persist() {\n        throw new UnsupportedOperationException(\"The path based writers do not support persisting\");\n    }\n\n    @Override\n    public PendingFileRecoverable closeForCommit() throws IOException {\n        writer.flush();\n        writer.finish();\n        fileCommitter.preCommit();\n        return new HadoopPathBasedPendingFile(fileCommitter, getSize()).getRecoverable();\n    }\n\n    @Override\n    public void dispose() {\n        writer.dispose();\n    }\n\n    @Override\n    public long getSize() throws IOException {\n        return writer.getSize();","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-hadoop-bulk/src/main/java/org/apache/flink/formats/hadoop/bulk/HadoopPathBasedPartFileWriter.java#L47-L83","documentation":"Error \"The path based writers do not support persisting\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: The path based writers do not support persisting.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: The path based writers do not support persisting.","solutions":["Address the cause reported by the error message: The path based writers do not support persisting","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"The path based writers do not support persisting\") 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"}