zhangyue19921010 opened a new pull request, #11189: URL: https://github.com/apache/paimon/pull/11189
### Purpose Fixes #11188. Full compaction copies candidates from a priority queue whose iterator does not preserve sequence order. After an automatic compaction requeues a small result, a bucket that previously reads `[0, 1, 2, 3, 4]` can be rewritten as `[0, 1, 2, 4, 3]` despite `bucket-append-ordered = true`. Sort full-compaction candidates by minimum sequence number before filtering and rewriting them. ### Tests Added a Java table regression that writes five real files, commits automatic compaction, performs full compaction, and reads both states through an initial streaming scan. It fails on unchanged upstream `f1ffd1369` with `[0, 1, 2, 4, 3]` and passes with the change. No file metadata is fabricated. 11 selected tests passed on JDK 11.0.18, covering full compaction, automatic candidate selection, ordered split/read behavior and repeated compaction cleanup. Maven `verify` ran the selected suite twice; one existing disabled candidate-selection test was skipped in each run. Checkstyle, Spotless, Enforcer and RAT passed without `fast-build`. Prepared with TRAE CLI. -- 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]
