You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2025/04/18 19:00:00 UTC

[jira] [Created] (HDDS-12873) Improve ContainerData statistics synchronization

Tsz-wo Sze created HDDS-12873:
---------------------------------

             Summary: 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


{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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org