[
https://issues.apache.org/jira/browse/HDDS-12873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved HDDS-12873.
-------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
The pull request was merged.
> Improve ContainerData statistics synchronization
> ------------------------------------------------
>
> Key: HDDS-12873
> URL: https://issues.apache.org/jira/browse/HDDS-12873
> Project: Apache Ozone
> Issue Type: Improvement
> Components: Ozone Dashboards
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.1.0
>
>
> {code}
> /** 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;
> {code}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]