Repository navigation
[kv] Support asynchronous manual compaction for primary-key tables - #4770
Open
platinumhamburg wants to merge 2 commits into
Open
platinumhamburg wants to merge 2 commits into
platinumhamburg wants to merge 2 commits into
Conversation
platinumhamburg
force-pushed
the
primary-key-compaction
branch
7 times, most recently
from
October 21, 2026 08:12
69a434c to
a7d018f
Compare
platinumhamburg
marked this pull request as ready for review
October 21, 2026 08:14
Support scoped manual compaction with durable at-least-once scheduling, confirmed snapshot publication, and asynchronous TabletServer execution. Use idempotent bucket starts and bounded immutable progress metadata.
platinumhamburg
force-pushed
the
primary-key-compaction
branch
from
October 23, 2026 08:50
9899a8b to
69556c3
Compare
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.
Purpose
Linked issue: closes #4769
Add asynchronous manual compaction for ordinary primary-key tables. Operators can optimize the LSM, reclaim eligible obsolete state, or migrate existing SSTs to the configured index layout. MIGRATE skips physical rewriting when live SSTs already match the cluster configuration.
Brief change log
compact,list_compactions,get_compaction, andcancel_compactionFlink procedures.Tests
CompactionITCase: 2 tests passed, covering real SST migration, committed-snapshot recovery, repeated MIGRATE without rewriting, and OPTIMIZE/RECLAIM with foreground writes.Remote CI is still pending. The full repository suite and actual JDK 8 runtime/API compatibility are not claimed verified. The combined scenario of held native work with real three-TS leader/active-Coordinator failover remains untested; deterministic component tests cover those failure mechanisms separately.
API and Format
Additive Java Admin interfaces, Flink procedures, RPC messages/API keys, exceptions, and operation metadata. Existing SST and KV snapshot formats remain in use; rewritten SSTs follow the effective cluster configuration. No caller-supplied request ID or index type is introduced.
Documentation
Add an operations guide and Flink procedure reference/examples.