-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store/tikv: reduce BatchGet pending keys only when there is no response-level error #21157
Conversation
…se-level error Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2c6797d
to
6e42b1a
Compare
…tidb into batch-get-async-commit
/run-all-tests tikv=pr/9077 |
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
…ommit Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
store/mockstore/unistore/rpc.go
Outdated
}, nil) | ||
} | ||
}) | ||
|
||
resp.Resp, err = c.usSvr.KvBatchGet(ctx, req.BatchGet()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider use batchGetReq
instead of req.BatchGet()
to make the purpose more clear. It doesn't matter though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Could you approve the PR again?
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
…tidb into batch-get-async-commit
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@sticnarf merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
What problem does this PR solve?
Issue Number: tikv/tikv#9069
What is changed and how it works?
If the response-level error exists, we don't read the
pairs
and need to resend the original BatchGet request.Related changes
Check List
Tests
Release note