bharatviswa504 commented on a change in pull request #2000:
URL: https://github.com/apache/ozone/pull/2000#discussion_r600354608



##########
File path: 
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMNodeInfo.java
##########
@@ -246,4 +247,20 @@ public String getScmSecurityAddress() {
   public String getScmDatanodeAddress() {
     return scmDatanodeAddress;
   }
+
+  public static SCMNodeInfo getScmNodeInfo(ConfigurationSource conf,
+      String nodeId) {
+    List<SCMNodeInfo> scmNodeInfoList = SCMNodeInfo.buildNodeInfo(conf);
+    Preconditions.checkState(scmNodeInfoList.size() >=1);
+    if (SCMHAUtils.getScmServiceId(conf) != null) {
+      for (SCMNodeInfo scmNodeInfo : scmNodeInfoList) {
+        if (scmNodeInfo.getNodeId().equals(nodeId)) {
+          return scmNodeInfo;
+        }
+      }

Review comment:
       Removed this method, as it is not used anywhere




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to