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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to