navinko commented on code in PR #11805:
URL: https://github.com/apache/ozone/pull/11805#discussion_r4447227253
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ECUnderReplicationHandler.java:
##########
@@ -450,12 +440,9 @@ private int processReconstruction(
return commandsSent;
}
- private static boolean hasSufficientSourcesForDecommissionReconstruction(
- Map<Integer, Pair<ContainerReplica, NodeStatus>> sources,
- Set<Integer> decomIndexes,
- int requiredDataSources) {
- long nonDecommissionSourceCount = sources.keySet().stream()
- .filter(index -> !decomIndexes.contains(index))
+ private static boolean
hasSufficientSourcesForDecommissionReconstruction(Map<Integer, SourceReplica>
sources,
+ Set<Integer> decomIndexes, int requiredDataSources) {
+ long nonDecommissionSourceCount = sources.keySet().stream().filter(index
-> !decomIndexes.contains(index))
Review Comment:
updated the format.
--
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]