feat(ctl) add args ( epoch , table ) in list-kv #2640
Merged
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.
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Add args ( epoch , table ) in
ctl/list-kv
, we can use it to query the "kv" in hummock store.cargo run --bin risectl -- hummock list-kv --epoch<epoch> --table-id<tableid>
We will query the "kv" in all tables , if
--table-id
is null oru32::MAX.
And we will query the "kv" withu64::MAX
( epoch ) , if--epoch
is nullWe will see table_id, executor_id in results.
example
usage:
cargo run --bin risectl -- hummock list-kv --epoch=1 --table-id=180
result with epoch = 1 and table_id = 180;
cargo run --bin risectl -- hummock list-kv
result with epoch =
u64::MAX
and all_table;output:
table_id:180 key : b"........." ====> value : b"..........."
Checklist
Refer to a related PR or issue link (optional)