sumitagrawl commented on code in PR #4165:
URL: https://github.com/apache/ozone/pull/4165#discussion_r1066607039
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketCreateRequest.java:
##########
@@ -388,6 +388,15 @@ public boolean checkQuotaBytesValid(OMMetadataManager
metadataManager,
long quotaInBytes = omBucketInfo.getQuotaInBytes();
long volumeQuotaInBytes = omVolumeArgs.getQuotaInBytes();
+ // When volume quota is set, then its mandatory to have bucket quota
+ if (volumeQuotaInBytes > 0) {
+ if (quotaInBytes <= 0) {
Review Comment:
Yes, we can specify bucket quota parameter while create bucket.
--
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]