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

Reply via email to