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

BlobBuilder always overrides default StorageClass Tier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.1.0, 2.2.0, 2.1.1, 2.1.2, 2.1.3
    • None
    • jclouds-blobstore
    • None

    Description

      Since 2.1.0, the BlobBuilder includes a Tier field that always defaults to Tier.STANDARD. This prevents newly created Blobs from inheriting the storage class of the bucket itself.

       

      In my case, I am using GCS and created a bucket with a default storage class of NEARLINE:

      $ gsutil mb -c NEARLINE gs://demo-bucket-nearline
      $ gsutil defstorageclass get gs://demo-bucket-nearline
      gs://demo-bucket-nearline: NEARLINE
      $ touch .demo-gsutil && gsutil cp .demo-gsutil gs://demo-bucket-nearline$ gsutil stat gs://demo-bucket-nearline/.demo-gsutil
      Storage class: NEARLINE

       

      In previous versions of jclouds the BlobBuilder did not specify an overriding storage class. I have attached a sample java application that uses jclouds 2.2.0 to show how this affects the storage class of newly created blobs:

       

      $ gsutil stat gs://demo-bucket-nearline/.demo-1
      Storage class: STANDARD

      $ gsutil stat gs://demo-bucket-nearline/.demo-2
      Storage class: NEARLINE

       

      The issue can be worked around by specifying the tier on the BlobBuilder, but that is only possible when the storage class on the bucket has a mapping in jclouds.

      Attachments

        1. sample.java
          2 kB
          Ryan Kistner

        Activity

          People

            Unassigned Unassigned
            azuisleet Ryan Kistner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: