Skip to content

Commit

Permalink
HDFS-17557. Fix bug for TestRedundancyMonitor#testChooseTargetWhenAll…
Browse files Browse the repository at this point in the history
…DataNodesStop (apache#6897). Contributed by Haiyang Hu.

Signed-off-by: Ayush Saxena <[email protected]>
  • Loading branch information
haiyang1987 authored Jul 6, 2024
1 parent 5a8f70a commit 8ca4627
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void testChooseTargetWhenAllDataNodesStop() throws Throwable {
NetworkTopology clusterMap = replicator.clusterMap;
NetworkTopology spyClusterMap = spy(clusterMap);
replicator.clusterMap = spyClusterMap;
doAnswer(delayer).when(spyClusterMap).getNumOfRacks();
doAnswer(delayer).when(spyClusterMap).getNumOfNonEmptyRacks();

ExecutorService pool = Executors.newFixedThreadPool(2);

Expand Down

0 comments on commit 8ca4627

Please sign in to comment.