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/03/31 22:59:00 UTC

[jira] [Created] (HDDS-12749) Use EnumCounters instead Map for command counts

Tsz-wo Sze created HDDS-12749:
---------------------------------

             Summary: Use EnumCounters instead Map<Type, Integer> for command counts
                 Key: HDDS-12749
                 URL: https://issues.apache.org/jira/browse/HDDS-12749
             Project: Apache Ozone
          Issue Type: Improvement
          Components: Ozone Datanode
            Reporter: Tsz-wo Sze
            Assignee: Tsz-wo Sze


In DatanodeStateMachine, CommandDispatcher and StateContext, the return type of getQueuedCommandCount() methods is Map<Type, Integer>. It is more efficient to return EnumCounters.
 - [https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/EnumCounters.java]



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