Uh oh!
There was an error while loading. Please reload this page.
Correctly handle TooManyBuckets error_code in default_bucket method - #40
Conversation
Correctly handles the `TooManyBuckets` error_code when the bucket already exists.
TooManyBuckets error_code in default_bucketTooManyBuckets error_code in default_bucket methodTooManyBuckets error_code in default_bucket method
owen-t
left a comment
There was a problem hiding this comment.
Thanks for your submission!
This looks good to me.
| elif error_code == 'TooManyBuckets': | ||
| try: | ||
| s3.meta.client.head_bucket(Bucket=default_bucket) | ||
| LOGGER.info('S3 bucket {} already exists'.format( |
There was a problem hiding this comment.
I don't think we need this logging message, in the normal case we don't log this.
| pass | ||
| elif error_code == 'TooManyBuckets': | ||
| try: | ||
| s3.meta.client.head_bucket(Bucket=default_bucket) |
There was a problem hiding this comment.
This is a little esoteric - if we remove the logging below, can you add some developer documentation:
# Succeed if the default bucket exists
Remove logging message
@owen-t Addressed your comments above. |
jalabort
commented
Jan 12, 2018
Is there something I need to amend due to the failing |
ChoiByungWook
commented
Jan 12, 2018
Hello, |
removing references to auto-scaling
Merge pull request aws#40 from athewsey/feat/fw-processor
…ws#40) * Update session.py Correctly handles the `TooManyBuckets` error_code when the bucket already exists.
At my organisation we have reached our maximum number of allowed buckets on
s3and as a direct consequence of that we started getting the following error when using thesagemaker-python-sdk:This little patch seems to take care of this issue.
I could not find much information in terms of the expected PR structure so I hope this suffices, happy to make the pertinent changes if it does not.