Tsz-wo Sze created HDDS-12826:
---------------------------------

             Summary: Improve IncrementalContainerReport processing
                 Key: HDDS-12826
                 URL: https://issues.apache.org/jira/browse/HDDS-12826
             Project: Apache Ozone
          Issue Type: Improvement
          Components: SCM
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


In IncrementalContainerReport processing, it currently looks up the same 
datanode and the same container multiple times. When it receives a report,
 # looks up datanode
 # for each reported container:
 -- looks up container
 -- looks up the same datanode again in order to add/remove container
 -- looks up the same container again in order to updateContainerStats
 -- looks up the same container again in order to updateContainerState (note 
that this is state and the previous is stats)
 -- looks up the same container again in order to updateContainerReplica

Support the report has n containers. Then, it will have
 - (n+1) datanode lookups, and
 - 4 container lookups for each container.

It could have
 - 1 datanode lookups, and
 - 1 container lookups for each container.



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