huyuanfeng2018 opened a new pull request, #9611:
URL: https://github.com/apache/paimon/pull/9611

   ### Purpose
   
   Fix #9595.
   
   For Chain Tables, `ChainTablePartitionExpire` may delete expired partitions 
from the Snapshot branch during a Delta commit, creating a new Snapshot-branch 
metadata snapshot.
   
   However, automatic snapshot expiration currently only runs for the 
committing Delta branch. As a result, old Snapshot-branch snapshots may remain 
and continue referencing expired files.
   
   ### Changes
   
   When the current branch is the configured Chain Table Delta branch, also 
expire snapshots on the configured Snapshot branch after the normal 
Delta-branch expiration.
   
   The maintenance order remains:
   
   1. Partition expiration
   2. Delta-branch snapshot expiration
   3. Snapshot-branch snapshot expiration
   
   ### Tests
   
   Added a regression test covering:
   
   `Delta commit -> ChainTablePartitionExpire -> Snapshot partition deletion -> 
new Snapshot metadata snapshot -> Snapshot snapshot expiration`
   
   The test verifies that expired Snapshot partitions are removed and only the 
latest Snapshot-branch snapshot is retained.
   


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