peterxcli commented on code in PR #11720:
URL: https://github.com/apache/ozone/pull/11720#discussion_r4367785168
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/volume/OMVolumeCreateRequest.java:
##########
@@ -95,6 +95,9 @@ public OMRequest preExecute(OzoneManager ozoneManager) throws
IOException {
volumeInfo.toBuilder()
.setCreationTime(initialTime)
.setModificationTime(initialTime)
+ // usedNamespace and refCount are maintained by OM, so a new
volume starts with both at 0.
Review Comment:
```suggestion
// reset usedNamespace and refCount to 0 to prevent arbitrary
value set in the request from any other client
```
--
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]