bharatviswa504 opened a new pull request #1719:
URL: https://github.com/apache/ozone/pull/1719
## What changes were proposed in this pull request?
When OM starts it creates default volume "s3v" where S3 buckets are created
with all required permissions.
When volume is created it is set the updateID with maxTransactionID. This
causes a problem, when user tries to perform setAcl/AddAcl on volume, we update
the updateID during that we have below check.
Now let's say, a transaction index 100 is trying to set ACL, it will fail in
the preCondition check.
```
if (isRatisEnabled) {
Preconditions.checkArgument(updateId >= this.updateID, String.format(
"Trying to set updateID to %d which is not greater than the " +
"current value of %d for %s", updateId, this.updateID,
getObjectInfo()));
}
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4597
## How was this patch tested?
Added test.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]