-
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
br: Skip verify region if the provider is ceph or minio #42366
Conversation
[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. |
Welcome @Fife86! |
Hi @Fife86. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Florian Gabillé seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
/cc @WangLe1321 @Leavrth |
/check-issue-triage-complete |
|
||
// s3manager.GetBucketRegionWithClient failed to get region from client if the client is ceph or minio | ||
// It defaut back to us-west-1 which break the code if a region is already set | ||
if qs.Provider != "ceph" && qs.Provider != "minio" { |
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.
- Not sure if excluding ceph and minio is the right solution, maybe we should check if
qs.Provider == "s3"
(or GCS?) - Maybe we should separate the provider config from the logic here. And check if
ProviderConfig.check_bucket_with_region == true
and then elsewhere store the config for each provider.
These are just ideas, I have no objections on merging this as-is.
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.
1 . I'm not sure about the list. We add ceph and minio because it's what we are working with and had troubles, but the issues may be wider.
2 Would it be simpler to add a parameter like qs.SkipBucketRegionCheck and a tag --skip-bucket-region-check when we launch br ? ( the wording is a bit long ^^")
Would be good to add a test to ensure this doesn't break again in the future. |
Co-authored-by: Daniël van Eeden <github@myname.nl>
Could you add a release note? This can be done by adding something like this to the description of the PR:
|
/ok-to-test |
@Fife86: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
// s3manager.GetBucketRegionWithClient failed to get region from client if the client is ceph or minio | ||
// It defaults back to us-west-1 which breaks the code if a region is already set | ||
if qs.Provider != "ceph" && qs.Provider != "minio" { | ||
|
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.
From the CI checks:
br/pkg/storage/s3.go:365:53: empty-lines: extra empty line at the start of a block (all_revive)
I have added the default
you can modify the |
@Fife86: 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. |
Thank you for the pull request, issue and all the work you did on this. Let's close this as a very similar PR has been merged that should fix the issue. Feel free to add a note here or on the issue if testing shows that this isn't completely fixed or if there are any other concerns. Thank you for choosing TiDB! |
What problem does this PR solve?
Issue Number: close #42033
Problem Summary:
When we use br with our infra, our endpoint didn't provide the correct region to our infra. In fact, it send us no region at all. The region test was failing, so we decided to skip this check for our ceph and minio providers.
What is changed and how it works?
We skip the region check in br if the provider is ceph or minio
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.