Skip to content
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 failed s3 blobstores #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

luka5
Copy link

@luka5 luka5 commented Jul 19, 2019

With the current version of the implementation it is impossible to delete an existing S3 blobstore, as soon as the AWS token expired. If you are running into this situation you only see the TokenExpired
Exception in the logs.

In this PR, we allow the delete and forceDelete to be called for Failed blobstores. Then the S3 blobstore implementation tries to delete the files in the S3 Bucket. This fails with an AmazonS3Exception with error code ExpiredToken. If we simply print the warning message, instead of passing the exception to the top, we can still remove the S3 blobstore.

resolves https://github.com/sonatype/nexus-blobstore-s3/issues/62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't update or delete failed S3 blob store
1 participant