From 0cf13c61efb5ef809039a2fcb88ceebbbb810b24 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 3 Feb 2016 23:34:37 -0800 Subject: [PATCH] Do not remove during Azure abortMultipartUpload Explicitly removing the blob removes any previously existing blob with the same name. --- .../java/org/jclouds/azureblob/blobstore/AzureBlobStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java index 0ec92ef73b..eed4ada55d 100644 --- a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java +++ b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java @@ -389,7 +389,8 @@ public class AzureBlobStore extends BaseBlobStore { @Override public void abortMultipartUpload(MultipartUpload mpu) { - sync.deleteBlob(mpu.containerName(), mpu.blobName()); + // Azure automatically removes uncommitted blocks after 7 days: + // http://gauravmantri.com/2012/05/11/comparing-windows-azure-blob-storage-and-amazon-simple-storage-service-s3part-ii/#f020 } @Override