Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- links to