rakeshadr commented on a change in pull request #2837:
URL: https://github.com/apache/ozone/pull/2837#discussion_r748728251
##########
File path:
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java
##########
@@ -226,6 +226,17 @@ private OzoneBucket getBucket(String volumeStr, String
bucketStr,
OzoneBucket bucket;
try {
bucket = proxy.getBucketDetails(volumeStr, bucketStr);
+
+ // 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" +
Review comment:
please modify message like above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]