Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5672 Support protocol aware buckets within a single OM
  3. HDDS-5959

Handles bucket layout validation logic in ofs/o3fs client

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • None

    Description

      Throw an exception if a bucket accessed via OFS is in OBJECT_STORE layout.

      This validation should be added to BasicOzoneClientAdapterImpl.java and BasicRootedOzoneClientAdapterImpl.java 

       

            // Check if bucket layout is valid, OFS buckets cannot be in
            // OBJECT_STORE layout
            BucketLayout bucketLayout = bucket.getBucketLayout();
            if (bucketLayout.equals(BucketLayout.OBJECT_STORE)) {
              throw new IllegalArgumentException(bucketLayout + " does not support" +
                  " file system semantics. Bucket Layout must be " +
                  BucketLayout.FILE_SYSTEM_OPTIMIZED + " or "
                  + BucketLayout.LEGACY + ".");
            } 

      Attachments

        Issue Links

          Activity

            People

              jyotindersingh Jyotinder Singh
              jyotindersingh Jyotinder Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: