QuakeWang commented on PR #1454:
URL: https://github.com/apache/paimon-rust/pull/1454#issuecomment-7131500040

   @JingsongLi I reproduced this locally. I’m not aware of a production report. 
After compaction was planned for a bucket, an overwrite removed a deletion 
vector in that bucket. The stale compaction still committed, and a scan 
returned both `(42, 42)` and `(42, 9000)` for primary key `42`. My concern is 
that the same race can happen in production if an overwrite lands between 
planning and commit.
   
   Java checks for same-bucket rewrites before publishing a compaction 
(apache/paimon#11001). The Rust check also covers rewrites from the same commit 
user, since another checkpoint from that user can replace the DV too.
   
   Would you be open to keeping this PR focused on the same-bucket check and 
the duplicate-key regression test? I’d move overwrite recovery and cleanup of 
rejected compaction outputs to separate follow-ups.
   


-- 
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]

Reply via email to