-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
Improve recursive object restore #1375
Improve recursive object restore #1375
Conversation
Thank you for your PR, it looks good to me. But, regarding the following behavior that you suggested in the issue: We will still have an issue if there are "non glacier" files in the folder that you want to restore: Is it expected in the way that you see your change? |
thanks 🙃
From AWS documentation an object already in the right storage class will return a 200 HTTP code. I'll run a check anyway just in case
I'll suggest we skip them too, if the object is concerned by a restore request (because it's already in standard class, it cannot be restored etc) we should just skip it. |
There is a subtile detail that is not well documented in my opinion.
I agree that it looks like to be a reasonable behavior. Let me know if you want to update this PR with this change or prefer to do another one for that. |
agreed, I tried it: when trying to restore an object in standard class, that is not concerned by GLACIER we receive as you said it the error
I would put it in the same PR, it belongs to the same improvement. |
When restoring a complete bucket stop and raise an error only when the configuration is set to stop on the first error. otherwise keep trying to restore the next objects. Ignore the following errors: - When the object is currently in transition - When the object is not concerned by the restore request (already in standard storage-class etc) closes s3tools#1369 Signed-off-by: Alexandre Lavigne <[email protected]>
b56e3ad
to
c8731b0
Compare
I reworked the code so we ignore both errors (already in progress and object already in correct storage class. |
Merged, thank you very much |
When restoring a complete bucket stop and raise an error only when the configuration is set to stop on the first error. otherwise keep trying to restore the next objects.
closes #1369