HDFS-15297. TestNNHandlesBlockReportPerStorage::blockReport_02 fails intermittently. Contributed by Ayush Saxena

This commit is contained in:
Mingliang Liu 2020-04-25 15:42:57 -07:00
parent 6225fce50d
commit 57c1e7ad9b
No known key found for this signature in database
GPG Key ID: BC2FB8C6908A0C16
1 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,6 @@ import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import java.util.concurrent.Future; import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import org.slf4j.Logger; import org.slf4j.Logger;
@ -319,7 +318,7 @@ public abstract class BlockReportTestBase {
} }
} }
waitTil(TimeUnit.SECONDS.toMillis(DN_RESCAN_EXTRA_WAIT)); DataNodeTestUtils.runDirectoryScanner(dn0);
// all blocks belong to the same file, hence same BP // all blocks belong to the same file, hence same BP
String poolId = cluster.getNamesystem().getBlockPoolId(); String poolId = cluster.getNamesystem().getBlockPoolId();