navinko commented on code in PR #11805:
URL: https://github.com/apache/ozone/pull/11805#discussion_r4447220701
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ECUnderReplicationHandler.java:
##########
@@ -144,15 +143,11 @@ public int processAndSendCommands(
}
}
- Map<Integer, Pair<ContainerReplica, NodeStatus>> sources =
- filterSources(replicas, deletionInFlight);
- List<DatanodeDetails> availableSourceNodes =
- sources.values().stream().map(Pair::getLeft)
- .map(ContainerReplica::getDatanodeDetails)
- .filter(datanodeDetails ->
- datanodeDetails.getPersistedOpState() ==
- HddsProtos.NodeOperationalState.IN_SERVICE)
- .collect(Collectors.toList());
+ Map<Integer, SourceReplica> sources = filterSources(replicas,
deletionInFlight);
+ List<DatanodeDetails> availableSourceNodes =
sources.values().stream().map(SourceReplica::replica)
+ .map(ContainerReplica::getDatanodeDetails).filter(datanodeDetails ->
+ datanodeDetails.getPersistedOpState() ==
HddsProtos.NodeOperationalState.IN_SERVICE)
+ .collect(Collectors.toList());
Review Comment:
Thanks @adoroszlai for the review suggestions . Addressed the review
suggestions and CI build is progressing
https://github.com/navinko/ozone/actions/runs/41514582145
--
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]