szetszwo opened a new pull request, #8305:
URL: https://github.com/apache/ozone/pull/8305
## What changes were proposed in this pull request?
```java
/** parameters for read/write statistics on the container. **/
private final AtomicLong readBytes;
private final AtomicLong writeBytes;
private final AtomicLong readCount;
private final AtomicLong writeCount;
private final AtomicLong bytesUsed;
private final AtomicLong blockCount;
```
In ContainerData, the fields shown above are for statistics. The
synchronization in current code is incorrect when updating multiple fields.
It is better to create a class for them and then synchronize the new class.
## What is the link to the Apache JIRA
HDDS-12873
## How was this patch tested?
By updating existing tests
--
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]