-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Remove GCS Bucket Exists Check #60899
Remove GCS Bucket Exists Check #60899
Conversation
Same as elastic#43288 for GCS. We don't need to do the bucket exists check before using the repo, that just needlessly increases the necessary permissions for using the GCS repository.
Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore) |
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 Yannick! |
Same as elastic#43288 for GCS. We don't need to do the bucket exists check before using the repo, that just needlessly increases the necessary permissions for using the GCS repository.
Same as elastic#43288 for GCS. We don't need to do the bucket exists check before using the repo, that just needlessly increases the necessary permissions for using the GCS repository.
Thanks for implementing this! When it's released I hope we can finally only assign Do you know if it will make to the next 7.8.x release (if any)? |
Hey @haizaar no problem! I'm afraid this will only make it into 7.9.x though. |
Same as #43288 for GCS.
We don't need to do the bucket exists check before using the repo, that just needlessly
increases the necessary permissions for using the GCS repository.
The change in what LIST API to use also reduces the number of API calls the SDK makes for each listing by one GET.
Slightly adjusted the way verification exceptions are handled also because the GCS SDK does throw
RuntimeException
instead of anIOException
if a bucket does not exist and we should still bubble up aRepositoryException
in this case during verification I think.