zhangyue19921010 opened a new pull request, #11234: URL: https://github.com/apache/paimon/pull/11234
### Purpose Fixes #11233. Closing a primary-key table writer without preparing a commit leaves its sort-buffer pages unavailable to a shared memory pool. Spill files also survive until the external IO manager closes, and a later writer can fail to allocate its record buffer. Clear the initialized write buffer before the rest of the close path. This returns its pages and deletes its spill files while discarding the unprepared rows. ### Tests `PrimaryKeyWriterCloseTest` covers spilling and in-memory buffers, three successive writers sharing a pool, and commit-before-close controls with row readback. On unchanged master, the two cleanup cases and two pool-reuse cases fail; both committed controls pass. All six pass with the fix. Final normal Maven verification also covers memory-pool ownership, spill clearing with bounded fan-in, changelog-writer failure cleanup, lookup compaction, and primary-key batch/changelog reads (OpenJDK 11.0.18, Java 8 source target). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
