-
Notifications
You must be signed in to change notification settings - Fork 555
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
Storage Delete for GCP >= 256 Objects #888
Conversation
ba16ab6
to
07f3b0c
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.
Thanks for fixing this! Some comments:
sky/data/storage.py
Outdated
logger.info(str_line) | ||
retcode = process.wait() | ||
if retcode != 0: | ||
raise exceptions.StorageBucketDeleteError( |
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.
I believe this is defined in #888. Maybe we should merge this PR after that or rebase this PR?
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.
After the code base reduction, its kind of hard to rebase and merge different branches. For simplicity, I think let's just merge this PR after #888!
391dca6
to
214091d
Compare
Thanks Romil for the review! PTAL |
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! Thanks for fixing this!
* Fix Weilin's bug * Refactor os.system to subprocess * Addressed romil's comments
* Fix Weilin's bug * Refactor os.system to subprocess * Addressed romil's comments
Fixes #724. Now, GCP storage code will detect if the bucket has >=256 objects. If there are more than 256 objects, then it will delete the contents in the bucket first.
Tests
touch ~/Downloads/hallo/{0001..0258}.c
YAML file
sky launch -c hallo storage.yaml && sky storage delete michaels-new-bucket-1