Skip to content
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

mb: Update pkg to retry mb with unmatched region #2139

Merged
merged 1 commit into from
Apr 29, 2017

Conversation

vadmeste
Copy link
Member

Fixes #2107

@codecov-io
Copy link

codecov-io commented Apr 22, 2017

Codecov Report

Merging #2139 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2139   +/-   ##
======================================
  Coverage    8.89%   8.89%           
======================================
  Files          92      92           
  Lines        6837    6837           
======================================
  Hits          608     608           
  Misses       6094    6094           
  Partials      135     135

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61e511c...b372c75. Read the comment docs.

@deekoder deekoder requested a review from harshavardhana April 23, 2017 00:54
cmd/client-s3.go Outdated
@@ -762,6 +763,11 @@ func (c *s3Client) MakeBucket(region string) *probe.Error {
}
e := c.api.MakeBucket(bucket, region)
if e != nil {
// Enhance error message when invalid region error is received
if errResp, ok := e.(minio.ErrorResponse); ok && errResp.Code == "InvalidRegion" {
errResp.Message = fmt.Sprintf("The server rejected `%s` region. Kindly pass the correct region value using `--region` flag.", region)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually retry with the Region returned in the headers. not sure if this is needed..

@deekoder deekoder requested a review from harshavardhana April 25, 2017 22:16
@harshavardhana
Copy link
Member

This PR is waiting on - minio/minio-go#665

Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minio/minio-go#665 waiting on this.

@vadmeste vadmeste changed the title mb: Print a clear error msg when region unmatched mb: Update pkg to retry mb with unmatched region Apr 26, 2017
@harshavardhana harshavardhana merged commit 136e286 into minio:master Apr 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants