aryangupta1998 commented on a change in pull request #2357:
URL: https://github.com/apache/ozone/pull/2357#discussion_r666516617



##########
File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketInfo.java
##########
@@ -378,6 +396,7 @@ public Builder() {
       this.metadata = new HashMap<>();
       this.quotaInBytes = OzoneConsts.QUOTA_RESET;
       this.quotaInNamespace = OzoneConsts.QUOTA_RESET;
+      this.bucketType = BucketType.DEFAULT;

Review comment:
       New users will only be able to create FILE_SYSTEM_OPTIMIZED and 
OBJECT_STORE buckets. Only existing buckets can be of type LEGACY. In 
BucketType.java we have mentioned that if the bucket type is null then the 
bucket type will be initialized to LEGACY. Also for unit tests, the buckets 
which don't have bucket type will be initialized to LEGACY, then we will check 
if the layout is of type prefix then we will change the bucket type to 
FILE_SYSTEM_OPTIMIZED. In the follow up jiras we will remove the layout 
'PREFIX' concept. I hope this answers your question!




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