bharatviswa504 commented on a change in pull request #2707:
URL: https://github.com/apache/ozone/pull/2707#discussion_r724752164



##########
File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/BucketLayout.java
##########
@@ -59,4 +60,10 @@ public static BucketLayout fromProto(
           "Error: BucketLayout not found, type=" + this);
     }
   }
+
+  public static BucketLayout fromString(String value) {
+    // Todo: should we throw error if user configured unsupported value
+    //  during OM startup or bucket creation time.
+    return StringUtils.isBlank(value) ? LEGACY : BucketLayout.valueOf(value);

Review comment:
       If we are addressing this, we donot need Todo.




-- 
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]

Reply via email to