Skip to content

[core] Snapshot expiration deletes data and changelog files in batches - #9409

Merged
yuzelin merged 10 commits into
apache:masterfrom
yuzelin:optimize-snapshot-expire-1
Aug 26, 2026
Merged

[core] Snapshot expiration deletes data and changelog files in batches#9409
yuzelin merged 10 commits into
apache:masterfrom
yuzelin:optimize-snapshot-expire-1

Conversation

@yuzelin

@yuzelin yuzelin commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Purpose

This optimization follows #9395 . The ExpireSnapshotsImpl collect all data file paths in memory to delete and might cause OOM. This PR clean data files in batches with fileOperationParallelism as batch size.

Tests

@yuzelin
yuzelin force-pushed the optimize-snapshot-expire-1 branch from 40bbc79 to ba1db80 Compare August 26, 2026 12:12

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@yuzelin
yuzelin merged commit b5c03b2 into apache:master Aug 26, 2026
13 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