[
https://issues.apache.org/jira/browse/JCLOUDS-251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Everett Toews resolved JCLOUDS-251.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
Assignee: Francis Devereux
https://github.com/jclouds/jclouds/pull/123
> 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
> Assignee: Francis Devereux
> Priority: Minor
> Fix For: 1.7.0
>
>
> 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