sumitagrawl commented on code in PR #5944:
URL: https://github.com/apache/ozone/pull/5944#discussion_r1445857914


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/pipeline/Pipeline.java:
##########
@@ -287,11 +287,11 @@ public DatanodeDetails 
getClosestNode(Set<DatanodeDetails> excluded)
     if (excluded == null) {
       excluded = Collections.emptySet();
     }
-    if (nodesInOrder.get() == null || nodesInOrder.get().isEmpty()) {
+    if (nodesInOrder == null || nodesInOrder.isEmpty()) {
       LOG.debug("Nodes in order is empty, delegate to getFirstNode");
       return getFirstNode(excluded);
     }
-    for (DatanodeDetails d : nodesInOrder.get()) {
+    for (DatanodeDetails d : nodesInOrder) {

Review Comment:
   will use list to update and access, updated



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

To unsubscribe, e-mail: [email protected]

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