Skip to content

Commit

Permalink
HDDS-10345. No need to sort excluded datanodes during Ratis pipeline …
Browse files Browse the repository at this point in the history
…creation (apache#6224)
  • Loading branch information
siddhantsangwan authored Feb 20, 2024
1 parent 932a0ac commit c8e6cab
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import java.io.IOException;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -244,7 +243,6 @@ private List<DatanodeDetails> filterPipelineEngagement() {
getPipelineStateManager(), d)))
.filter(d ->
(d.getPipelines() >= getNodeManager().pipelineLimit(d.getDn())))
.sorted(Comparator.comparingInt(DnWithPipelines::getPipelines))
.map(d -> d.getDn())
.collect(Collectors.toList());
return excluded;
Expand Down

0 comments on commit c8e6cab

Please sign in to comment.