*: support need_commit_ts for TiKV command batch_get_command#19301
*: support need_commit_ts for TiKV command batch_get_command#19301ti-chi-bot[bot] merged 1 commit intotikv:masterfrom
need_commit_ts for TiKV command batch_get_command#19301Conversation
c822848 to
93fb15e
Compare
|
/retest |
There was a problem hiding this comment.
Pull request overview
This PR completes the implementation for supporting the need_commit_ts flag in TiKV's batch_get_command, fixing two issues from the previous PR #19103:
Changes:
- Fixed the test case
test_batch_get_with_need_commit_tsto properly set the context with committed_locks - Extended
batch_get_commandto returnValueEntry(containing value and optional commit_ts) instead of just raw bytes - Updated all response consumers to handle
ValueEntryand properly set commit_ts in responses when present
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/integrations/server/kv_service.rs | Fixed test to use correct context variable and added assertions for reading through committed_locks |
| src/storage/mod.rs | Changed batch_get_command signature to return ValueEntry, threaded need_commit_ts flag through the call chain, added take_values() helper method, and included comprehensive unit test |
| src/server/service/batch.rs | Updated GetCommandResponseConsumer to extract and set commit_ts from ValueEntry, added unit tests |
| components/test_storage/src/sync_storage.rs | Updated to use take_values() for backward compatibility |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
93fb15e to
34de218
Compare
|
/retest |
1 similar comment
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfzjywxk, ekexium The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@lcwangchao: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
…19301) close tikv#19102 support `need_commit_ts` for TiKV command batch_get_command Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
…19301) close tikv#19102 support `need_commit_ts` for TiKV command batch_get_command Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
…19301) close tikv#19102 support `need_commit_ts` for TiKV command batch_get_command Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
…19301) close tikv#19102 support `need_commit_ts` for TiKV command batch_get_command Signed-off-by: Chao Wang <cclcwangchao@hotmail.com>
What is changed and how it works?
Issue Number: Close #19102
What's Changed:
This PR fix two places:
need_commit_tsfor TiKV command batch_get_command, this PR completes it.Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
Release note