sumitagrawl commented on code in PR #4082:
URL: https://github.com/apache/ozone/pull/4082#discussion_r1050498567
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/key/OMKeyCreateResponse.java:
##########
@@ -91,6 +91,13 @@ public void addToDBBatch(OMMetadataManager omMetadataManager,
omMetadataManager.getKeyTable(getBucketLayout())
.putWithBatch(batchOperation, parentKey, parentKeyInfo);
}
+
+ // namespace quota changes for parent directory
+ String bucketKey = omMetadataManager.getBucketKey(
+ getOmBucketInfo().getVolumeName(),
+ getOmBucketInfo().getBucketName());
+ omMetadataManager.getBucketTable().putWithBatch(batchOperation,
Review Comment:
@sadanand48 Here we are updating namespace of parent directory of key only,
still usedBytes and namespace of the key is done at commitKey only.
But during prepare, we just do validation if quota as required is valid or
not which is already present.
--
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]