Skip to content

Commit 74d4a18

Browse files
committed
HDFS-15297. TestNNHandlesBlockReportPerStorage::blockReport_02 fails intermittently. Contributed by Ayush Saxena
1 parent 453c9c9 commit 74d4a18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/BlockReportTestBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import java.util.concurrent.ExecutorService;
3838
import java.util.concurrent.Executors;
3939
import java.util.concurrent.Future;
40-
import java.util.concurrent.TimeUnit;
4140
import java.util.concurrent.TimeoutException;
4241

4342
import org.slf4j.Logger;
@@ -320,7 +319,7 @@ public void blockReport_02() throws IOException {
320319
}
321320
}
322321

323-
waitTil(TimeUnit.SECONDS.toMillis(DN_RESCAN_EXTRA_WAIT));
322+
DataNodeTestUtils.runDirectoryScanner(dn0);
324323

325324
// all blocks belong to the same file, hence same BP
326325
String poolId = cluster.getNamesystem().getBlockPoolId();

0 commit comments

Comments
 (0)