adoroszlai commented on code in PR #9327:
URL: https://github.com/apache/ozone/pull/9327#discussion_r2544412348
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/acl/OMBucketAclRequest.java:
##########
@@ -106,7 +106,9 @@ public OMClientResponse validateAndUpdateCache(OzoneManager
ozoneManager, Execut
}
operationResult = omBucketAclOp.test(ozoneAcls, omBucketInfo);
- omBucketInfo.setUpdateID(transactionLogIndex);
+ omBucketInfo = omBucketInfo.toBuilder()
+ .withUpdateID(transactionLogIndex)
+ .build();
Review Comment:
`updateID` does not need to be set either for no-op request, so we can move
`withUpdateID` into the `if` block.
--
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]