bharatviswa504 commented on a change in pull request #689: HDDS-1379. Convert 
all OM Volume related operations to HA model.
URL: https://github.com/apache/hadoop/pull/689#discussion_r271976232
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/S3BucketManagerImpl.java
 ##########
 @@ -166,6 +170,10 @@ public boolean createOzoneVolumeIfNeeded(String userName)
               .setVolume(ozoneVolumeName)
               .setQuotaInBytes(OzoneConsts.MAX_QUOTA_IN_BYTES)
               .build();
+      if (isRatisEnabled) {
 
 Review comment:
   S3Bucket create internally calls createVolume. As now we have not separated 
s3 createbucket into 2 phase, we need to do this (In applyTransaction 
createBucket is called now). As createVolume when ratis is enabled it does not 
apply to OM DB. So, we need to call apply also here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to