You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Francis Devereux (JIRA)" <ji...@apache.org> on 2013/08/21 17:14:52 UTC
[jira] [Created] (JCLOUDS-251) Swift: Delete chunks when deleting a
multipart blob
Francis Devereux created JCLOUDS-251:
----------------------------------------
Summary: Swift: Delete chunks when deleting a multipart blob
Key: JCLOUDS-251
URL: https://issues.apache.org/jira/browse/JCLOUDS-251
Project: jclouds
Issue Type: Improvement
Components: jclouds-blobstore
Affects Versions: 1.6.0
Reporter: Francis Devereux
Priority: Minor
jclouds automatically creates a blob for each chunk when it does a multipart upload.
When the multipart blob is deleted with BlobStore.removeBlob() the chunks are left behind. It would be nice if jclouds automatically deleted them.
Test case here: https://github.com/brightinteractive/jclouds-prototype/blob/1cfa515b15658b3b7f74b2714dbf5b47fb4e14f2/src/test/java/com/brightinteractive/jclouds/PutGetDeleteMultiPartTest.java (it fails at the last assert, assertEquals(0, blobStore.countBlobs(container))).
IMHO the automatic deletion doesn't need to be optional which means no API changes are needed - if jclouds automatically creates chunks why shouldn't it always automatically delete them?
JCLOUDS-250 probably needs to be addressed before this issue otherwise jclouds might automatically delete other blobs whose names start with the multipart blob's name.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira