Skip to content

Comments

feat: Logging and fsync delay for retention deletion (#27114)#27225

Merged
devanbenz merged 2 commits intomain-2.xfrom
db/cherrypick-c836ac271
Feb 18, 2026
Merged

feat: Logging and fsync delay for retention deletion (#27114)#27225
devanbenz merged 2 commits intomain-2.xfrom
db/cherrypick-c836ac271

Conversation

@devanbenz
Copy link

This area of the code is where we "hang" during retention policy deletion. It only occurs in very high cardinality dbs ~10 million+. DeleteSeriesID holds a mutex lock and does a fsync call. Running this millions of times + contention + disk I/O between various other writers/readers this could potentially go on for days.

This PR batches sync operations instead of running a sync during every series deletion op. It also adds additional logging to retention series deletion.

(cherry picked from commit c836ac2)

This area of the code is where we "hang" during retention policy deletion. It only occurs in very high cardinality dbs ~10 million+. DeleteSeriesID holds a mutex lock and does a fsync call. Running this millions of times + contention + disk I/O between various other writers/readers this could potentially go on for days.

This PR batches sync operations instead of running a sync during every series deletion op. It also adds additional logging to retention series deletion.

(cherry picked from commit c836ac2)
@devanbenz devanbenz self-assigned this Feb 18, 2026
@devanbenz devanbenz added kind/bug 1.x kind/perf area/2.x OSS 2.0 related issues and PRs and removed 1.x labels Feb 18, 2026
Copy link
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

LGTM

@devanbenz devanbenz merged commit 5bebb3e into main-2.x Feb 18, 2026
25 checks passed
@devanbenz devanbenz deleted the db/cherrypick-c836ac271 branch February 18, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/2.x OSS 2.0 related issues and PRs kind/bug kind/perf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants