-
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
infosync: omit the 404 error when /config/placement-rule is not existed #21247
Conversation
Signed-off-by: Ryan Leung <rleungx@gmail.com>
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
Could you add a unit test? Rest LGTM, thanks! |
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
LGTM after adding test #21247 (comment) |
/label type/bug-fix |
Signed-off-by: Ryan Leung <rleungx@gmail.com>
/cc @overvenus |
LGTM |
@overvenus, Thanks for your review. The bot only counts LGTMs from Reviewers and higher roles, but you're still welcome to leave your comments. See the corresponding SIG page for more information. Related SIG: ddl(slack). |
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
/merge |
/merge |
/merge |
/run-all-tests |
What problem does this PR solve?
Issue Number: close pingcap/br#609
Problem Summary: BR cannot backup when PD doesn't have
/config/placement-rule
APIWhat is changed and how it works?
What's Changed:
This PR checks the response of
/config/placement-rule
, if the status code of the response is 404, return nil directly.Check List
Tests
Start a cluster and create a table and then use br to backup.
Before:
After:
Release note