HDFS-9565. TestDistributedFileSystem.testLocatedFileStatusStorageIdsTypes is flaky due to race condition. (Contributed by Wei-Chiu Chuang)

This commit is contained in:
Arpit Agarwal 2015-12-17 10:36:07 -08:00
parent 03e10f1fb3
commit 0c1d1e311c
2 changed files with 4 additions and 0 deletions

View File

@ -1636,6 +1636,9 @@ Release 2.8.0 - UNRELEASED
HDFS-9198. Coalesce IBR processing in the NN. (Daryn Sharp via umamahesh)
HDFS-9565. TestDistributedFileSystem.testLocatedFileStatusStorageIdsTypes
is flaky due to race condition. (Wei-Chiu Chuang via Arpit Agarwal)
Release 2.7.3 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -729,6 +729,7 @@ public void testLocatedFileStatusStorageIdsTypes() throws Exception {
final int repl = 2;
DFSTestUtil.createFile(fs, testFile, blockSize, numBlocks * blockSize,
blockSize, (short) repl, 0xADDED);
DFSTestUtil.waitForReplication(fs, testFile, (short) repl, 30000);
// Get the listing
RemoteIterator<LocatedFileStatus> it = fs.listLocatedStatus(testFile);
assertTrue("Expected file to be present", it.hasNext());