-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
raftstore:Fix log append reject response bug about MsgUnreachable msg #12409
Conversation
Signed-off-by: tier-cap <[email protected]>
Signed-off-by: tier-cap <[email protected]>
close tikv#11371 Signed-off-by: tier-cap <[email protected]>
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
@@ -2061,6 +2061,14 @@ where | |||
return Ok(()); | |||
} | |||
|
|||
if matches!(msg_type, MessageType::MsgUnreachable) { |
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.
How can it receive the MsgUnreachable
? Is there any test case to verify it's actually working?
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.
by checking whether the progress state to this peer is Probe, is ok?
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.
No, it's too hacky. The point of making it unreachable is to hint leader don't send any further messages. You should check the behavior instead of checking some properties.
Signed-off-by: tier-cap <[email protected]>
4426fb1
to
c0ab628
Compare
Signed-off-by: tier-cap <[email protected]>
@tier-cap: PR needs rebase. Instructions 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/test-infra repository. |
What is changed and how it works?
Issue Number: Close #11371
What's Changed:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note