S3MultipartPart[] parts = uploadDao.getParts(uploadId, 10000, 0);
for (int i = 0; i < parts.length; i++) {
bucketAdapter.deleteObject(host_storagelocation_pair.getSecond(), ServiceProvider.getInstance()
.getMultipartDir(), parts[i].getPath());
}
uploadDao.deleteUpload(uploadId);
return 204;
} catch (PermissionDeniedException e) {
logger.error("freeUploadParts failed due to [" + e.getMessage()
+ "]", e);