-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
coprocessor: skip empty tidb nodes #36548
Conversation
Signed-off-by: mornyx <mornyx.z@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
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. |
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
Can we ignore tidb info with empty IP returned by etcd? Lines 552 to 563 in 965454f
|
I think we can, but I am not sure if we should. |
I can't guarantee whether other code has special dependencies on nodes, even BR nodes. So I just skipped where the problem occurred and didn't modify the entire data source.. |
Signed-off-by: mornyx <mornyx.z@gmail.com>
Signed-off-by: mornyx <mornyx.z@gmail.com>
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0efecb2
|
@mornyx: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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 ti-community-infra/tichi repository. |
Signed-off-by: mornyx <mornyx.z@gmail.com>
Merge canceled because a new commit is pushed. |
This PR avoids sending copr requests to TiDB nodes with empty IP addresses. Unfortunately, many tests depend on this behavior. When we create a mock store and use it to bootstrap a mock session, all tests will depend on this fact: there is only one node in the entire mocked cluster with an empty IP address and it can handle copr requests normally. So the optimization of this PR is not easy to achieve, since issue #36546 has been resolved by pr #36558, I will close this PR. |
Issue Number: close #36546
What is changed and how it works?
As described in #36546, we should avoid trying to send coprocessor requests to apparently illegal TiDB addresses. In this PR, our solution is: When building cop tasks, check the node address to decide whether to skip it directly.
Release note
Signed-off-by: mornyx mornyx.z@gmail.com