HDFS-17557. Fix bug for TestRedundancyMonitor#testChooseTargetWhenAllDataNodesStop (#6897). Contributed by Haiyang Hu.
Some checks failed
website / build (push) Has been cancelled
Some checks failed
website / build (push) Has been cancelled
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
parent
5a8f70a72e
commit
8ca4627a0d
@ -72,7 +72,7 @@ public void testChooseTargetWhenAllDataNodesStop() throws Throwable {
|
|||||||
NetworkTopology clusterMap = replicator.clusterMap;
|
NetworkTopology clusterMap = replicator.clusterMap;
|
||||||
NetworkTopology spyClusterMap = spy(clusterMap);
|
NetworkTopology spyClusterMap = spy(clusterMap);
|
||||||
replicator.clusterMap = spyClusterMap;
|
replicator.clusterMap = spyClusterMap;
|
||||||
doAnswer(delayer).when(spyClusterMap).getNumOfRacks();
|
doAnswer(delayer).when(spyClusterMap).getNumOfNonEmptyRacks();
|
||||||
|
|
||||||
ExecutorService pool = Executors.newFixedThreadPool(2);
|
ExecutorService pool = Executors.newFixedThreadPool(2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user