Skip to content

Fix TTL expired data ratio in settle compaction - #18777

Merged
jt2594838 merged 1 commit into
apache:masterfrom
hongzhi-gao:fix/ttl-expired-data-ratio
Sep 30, 2026
Merged

jt2594838 merged 1 commit into
apache:masterfrom
hongzhi-gao:fix/ttl-expired-data-ratio

Conversation

@hongzhi-gao

Copy link
Copy Markdown
Contributor

Description

Restore the TTL cleanup threshold

Fix the forced cleanup threshold from TTL to 3 × TTL so that expired_data_ratio controls selection before forced cleanup is due. Handle multiplication overflow and zero TTL correctly.

Avoid rewriting clean files

Require a positive dirty-device ratio for ratio-based selection, preventing repeated compaction of clean files when expired_data_ratio=0.

@jt2594838
jt2594838 merged commit 2f9f9ca into apache:master Sep 30, 2026
37 of 39 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