[feat][store] Compaction-filter GC for the txn write CF with MVCC-awa… - #1482
Merged
Merged
Conversation
…re auto compaction - Reject txn reads and prewrites older than the gc safe point (gc_enable_safe_point_read_check, ETXN_LT_GC_SAFE_POINT). - Add a TiKV-style txn GC compaction filter for the write CF: shadowed versions are dropped inside compaction without writing tombstones; orphan data CF keys are batch-deleted by a background cleaner; explicit periodic_compaction_seconds keeps cold bottom levels filtered. - Narrow filter-mode scan GC to delete-mark version groups, removed as raft-replicated per-user-key range deletes (delete_ranges_with_cf) so replicas whose compaction filters progressed differently still converge; defer the delete-mark flush until its version group ends. - Collect dingo.mvcc.* table properties on write CF SSTs and use them for MVCC-aware auto compaction: score regions by tombstones and reclaimable redundant versions, compact the dirtiest under a region cooldown and a per-round time budget. - Bound txn scan version-group crawls with one-shot seeks, both when crossing user keys (txn_scan_next_seek_bound) and when a snapshot read descends past versions newer than its start_ts. - Make the orphan cleaner gflags runtime adjustable via brpc /flags; log txn scan seek lock conflicts at INFO; enable the gc compaction filter and safe point read check by default (rollout requires every replica to understand raft delete_ranges_with_cf). - Bump dingo-store-proto to the rebased line carrying ETXN_LT_GC_SAFE_POINT and delete_ranges_with_cf. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
yuhaijun999
enabled auto-merge
August 21, 2026 01:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…re auto compaction