HDFS-9580. TestComputeInvalidateWork#testDatanodeReRegistration failed due to unexpected number of invalidate blocks. Contributed by Wei-Chiu Chuang.

Change-Id: I9411dfb1dd4605cbcc515ca3361218d35d7c5fe3
(cherry picked from commit 0087734cc1)

Conflicts:

	hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
This commit is contained in:
Jason Lowe 2016-06-07 15:36:53 +00:00
parent e91eba2f81
commit 738b67e9d3
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ public void testDatanodeReRegistration() throws Exception {
// Create a file and shutdown the DNs, which populates InvalidateBlocks // Create a file and shutdown the DNs, which populates InvalidateBlocks
DFSTestUtil.createFile(dfs, path, dfs.getDefaultBlockSize(), DFSTestUtil.createFile(dfs, path, dfs.getDefaultBlockSize(),
(short) NUM_OF_DATANODES, 0xED0ED0); (short) NUM_OF_DATANODES, 0xED0ED0);
DFSTestUtil.waitForReplication(dfs, path, (short) NUM_OF_DATANODES, 12000);
for (DataNode dn : cluster.getDataNodes()) { for (DataNode dn : cluster.getDataNodes()) {
dn.shutdown(); dn.shutdown();
} }