You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Jyotinder Singh (Jira)" <ji...@apache.org> on 2021/11/10 05:54:00 UTC

[jira] [Created] (HDDS-5959) Validate buckets accessed via OFS to be in FSO / LEGACY layout

Jyotinder Singh created HDDS-5959:
-------------------------------------

             Summary: Validate buckets accessed via OFS to be in FSO / LEGACY layout
                 Key: HDDS-5959
                 URL: https://issues.apache.org/jira/browse/HDDS-5959
             Project: Apache Ozone
          Issue Type: Task
            Reporter: Jyotinder Singh
            Assignee: Jyotinder Singh


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

This validation should be added to [BasicOzoneClientAdapterImpl.java|https://github.com/apache/ozone/blob/4c2181ff42be3d6b7dbec4f0c3da549d89e12fc0/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java#L155] and [BasicRootedOzoneClientAdapterImpl.java|https://github.com/apache/ozone/blob/4c2181ff42be3d6b7dbec4f0c3da549d89e12fc0/hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java#L224] 



// 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 + ".");
      }



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org