Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-749

Files of 961450810 bytes are corupted in swift when using multipart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.8.0
    • None
    • jclouds-blobstore

    Description

      Uploading any file of 961450810 bytes (tested 3 random files using dd if=/dev/urandom of=file bs=961450810 count=1) to swift using multipart is currupted if downloaded back.

      This is the code used for uploading:

      props.setProperty("jclouds.mpu.parts.size", "103554431");
      BlobStoreContext blobStoreContext = ContextBuilder.newBuilder(provider).overrides(props).build(BlobStoreContext.class);
      blobstore = blobStoreContext.getBlobStore();
      
      Blob blob = blobstore.getBlob(container, name);
      File file = new File(/tmp/file);
      blob.setPayload(file);
      blobstore.putBlob(name, blob, PutOptions.Builder.multipart(true));
      

      And downloading:

      Blob blob = blobstore.getBlob(container,file);
      Payload payload = blob.getPayload();
      in =  payload.openStream();
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            skoulouz Spiros Koulouzis
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: