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
fix: honour the set region config #1039
Conversation
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.
@prakashsvmx I think there may be some bugs that you might have now because the changes look way too much.
Check how minio-py
handles this specifically def _get_region
- this is what you need in minio-js.
@harshavardhana thank you. I checked the minio-py and added back the validation i removed in earlier commit. i have extracted the hard coded default region into a const and replaced all the occurrences |
I have checked the minio-go code. as per the implementation, the make bucket is retried with server returned region in case the region is not configured ("") or default region (us-east-1) on the client. So i will explore further . marking it as WIP. @harshavardhana @ebozduman @kannappanr thank you for the guidance. |
8b7ec65
to
45488e4
Compare
45488e4
to
b67b418
Compare
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
honour the set region config
fixes #1038
//ensure no region is set in minio server
mc admin config set local region name= && mc admin service restart local
export SERVER_ENDPOINT=localhost:9000 && export ACCESS_KEY=minio && export SECRET_KEY=minio123 && npm run functional