You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/06/15 06:34:00 UTC
[jira] [Created] (HDDS-8854) Avoid unnecessary DatanodeDetails creation for NodeStateManager lookup
Attila Doroszlai created HDDS-8854:
--------------------------------------
Summary: Avoid unnecessary DatanodeDetails creation for NodeStateManager lookup
Key: HDDS-8854
URL: https://issues.apache.org/jira/browse/HDDS-8854
Project: Apache Ozone
Issue Type: Improvement
Components: SCM
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
{code:title=https://github.com/apache/ozone/blob/0b6a16abbb61049406c3a8b1cdbb5fe06c74bceb/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/NodeStateManager.java#L375-L377}
public DatanodeInfo getNode(DatanodeDetails datanodeDetails)
throws NodeNotFoundException {
return nodeStateMap.getNodeInfo(datanodeDetails.getUuid());
{code}
Several callers create {{DatanodeDetails}} just for the lookup. These could be avoided by an overloaded method accepting {{UUID}} directly.
Same for {{getNodeStatus}}.
--
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