-
Notifications
You must be signed in to change notification settings - Fork 549
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
Add Region in config.json file (#2570) #2571
Conversation
Default is still `us-east-1`
Codecov Report
@@ Coverage Diff @@
## master #2571 +/- ##
==========================================
- Coverage 10.49% 10.49% -0.01%
==========================================
Files 107 107
Lines 10828 10829 +1
==========================================
Hits 1136 1136
- Misses 9542 9543 +1
Partials 150 150
Continue to review full report at Codecov.
|
Hey @quentinselle, thanks for this PR. The purpose of this PR is not clear for me yet, mc is supposed to calculate a bucket region automatically when applicable, are you targeting any specific use case ? |
This PR is related to this issue #2570. If you have any questions, please feel free to ask. |
Listing buckets does not depend on region as @kannappanr mentioned, the region depends on the location of a bucket. You can enable --debug flag in aws to see that it uses 'us-east-1' by default when region doesn't make sense in the current operation, (see StringToSign)
|
Indeed, I discussed with @kannappanr on issue #2570 and we concluded that this Pull Request is useless. We found a better way to fix my problem (-> That's why I linked you the issue in the hope you'll read it and give a update to it before reply here (no reply on the issue since last week). I now return a How do you suggest to implement the retry in Thank you. |
@quentinselle, minio-go already retries with region when response code is InvalidRegion. response message for AuthorizationHeaderMalformed needs to be parsed to get the correct region and set as errResp.region in https://github.com/minio/minio-go/blob/master/api-error-response.go#L179 and |
Closing this PR as suggested by @quentinselle |
If not set in config.json, default is still
us-east-1
.