From 5b4c80b27eb8e6cbc9ba7176860dff5982ea8657 Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Tue, 7 Jun 2016 15:33:43 +0000 Subject: [PATCH] HDFS-9580. TestComputeInvalidateWork#testDatanodeReRegistration failed due to unexpected number of invalidate blocks. Contributed by Wei-Chiu Chuang. Change-Id: I9411dfb1dd4605cbcc515ca3361218d35d7c5fe3 (cherry picked from commit 0087734cc1e18e029ea39f06ca25c8a7d60af004) Conflicts: hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt --- .../hdfs/server/blockmanagement/TestComputeInvalidateWork.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java index 3fcca8132e0..033f4d17215 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestComputeInvalidateWork.java @@ -146,6 +146,7 @@ public class TestComputeInvalidateWork { // Create a file and shutdown the DNs, which populates InvalidateBlocks DFSTestUtil.createFile(dfs, path, dfs.getDefaultBlockSize(), (short) NUM_OF_DATANODES, 0xED0ED0); + DFSTestUtil.waitForReplication(dfs, path, (short) NUM_OF_DATANODES, 12000); for (DataNode dn : cluster.getDataNodes()) { dn.shutdown(); }