Repository navigation
[kv] Implement KvTablet RocksDB Lazy Open - #2914
Open
platinumhamburg wants to merge 5 commits into
Open
platinumhamburg wants to merge 5 commits into
platinumhamburg wants to merge 5 commits into
Conversation
platinumhamburg
force-pushed
the
feature/lazy-open
branch
20 times, most recently
from
March 30, 2026 08:48
92b7e0e to
427232b
Compare
platinumhamburg
force-pushed
the
feature/lazy-open
branch
from
April 1, 2026 04:25
427232b to
37bc14e
Compare
platinumhamburg
force-pushed
the
feature/lazy-open
branch
from
April 17, 2026 06:25
37bc14e to
beb59bf
Compare
platinumhamburg
force-pushed
the
feature/lazy-open
branch
from
October 8, 2026 04:10
beb59bf to
5a4c0ae
Compare
Keep maintenance guards from refreshing idle access timestamps. Fence closing tablets and wait for open, release, callbacks and candidate cleanup before completing close or drop. Retain bucket ownership until cleanup completes and propagate shutdown failures before releasing shared native resources. Cover periodic snapshots, fenced opens, slow releases, shutdown and repeated drops with regression tests. Verified 202 related server tests and the Java 8 reactor build.
Merge OSS jar and test-jar goals into one plugin declaration while preserving the multi-release manifest. Remove the duplicate ordinary Flink connector-base dependency and retain its provided and test-jar dependencies. Validated clean install with JDK 8 and the java8 profile across all 48 reactor modules.
Wait for each replica and its metadata after creating the primary-key table, before the bounded enumerator requests stopping offsets. Table creation can finish before tablet servers are ready to serve ListOffsets. Validated FlinkSourceEnumeratorTest with Maven verify: all 30 cases passed in both test executions.
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.
Defer RocksDB open to first access and auto-release idle tablets to reduce memory usage on tablet servers with many KV buckets.
Key design:
Configs: kv.lazy-open.enabled (default false), kv.lazy-open.idle-timeout (default 24h).
Metrics: kvTabletOpenCount, kvTabletLazyCount, kvTabletFailedCount (Gauge).
Purpose
Linked issue: close #2913 2913
Brief change log
Tests
API and Format
Documentation