Skip to content

Commit

Permalink
[flink] Bugfix expire snapshot don't work when some snapshot between …
Browse files Browse the repository at this point in the history
…earliest and latest are removed for some reason
  • Loading branch information
jiangqiao.xu committed Dec 20, 2024
1 parent 0b55a4e commit 7691d1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public int expire() {
// Ensure maxExclusive exist, deal some snapshot between earliest and latest is deleted
maxExclusiveByExpireLimit++;
}
maxExclusive = Math.min(maxExclusive, maxExclusiveByExpireLimit);
maxExclusive = Math.min(maxExclusive, earliest + maxDeletes);

for (long id = min; id < maxExclusive; id++) {
// Early exit the loop for 'snapshot.time-retained'
Expand Down

0 comments on commit 7691d1f

Please sign in to comment.