Skip to content

[core] Check next snapshot's time for snapshotTimeRetain expiration protection#7706

Merged
tsreaper merged 6 commits into
apache:masterfrom
JingsongLi:expire_protect
May 8, 2026
Merged

[core] Check next snapshot's time for snapshotTimeRetain expiration protection#7706
tsreaper merged 6 commits into
apache:masterfrom
JingsongLi:expire_protect

Conversation

@JingsongLi
Copy link
Copy Markdown
Contributor

Purpose

Previously, a snapshot was expired if its own timestamp exceeded snapshotTimeRetain. This could cause premature expiration when snapshotRetainMin is small. Now we check the next snapshot's timestamp instead, ensuring each snapshot is protected for the full snapshotTimeRetain duration.

Tests

ExpireSnapshotsTest.java

…rotection

Previously, a snapshot was expired if its own timestamp exceeded
snapshotTimeRetain. This could cause premature expiration when
snapshotRetainMin is small. Now we check the next snapshot's timestamp
instead, ensuring each snapshot is protected for the full
snapshotTimeRetain duration.
@JingsongLi JingsongLi changed the title [core] Check next snapshot's time for snapshotTimeRetain expiration protection [WIP][core] Check next snapshot's time for snapshotTimeRetain expiration protection Apr 27, 2026
@JingsongLi JingsongLi changed the title [WIP][core] Check next snapshot's time for snapshotTimeRetain expiration protection [core] Check next snapshot's time for snapshotTimeRetain expiration protection May 7, 2026
Comment thread paimon-core/src/test/java/org/apache/paimon/operation/ExpireSnapshotsTest.java Outdated
JingsongLi and others added 2 commits May 8, 2026 11:23
…apshotsTest.java

Co-authored-by: tsreaper <tsreaper96@gmail.com>
@tsreaper tsreaper merged commit 81dd513 into apache:master May 8, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants