HDFS-14669. TestDirectoryScanner#testDirectoryScannerInFederatedCluster fails intermittently in trunk. Contributed by qiang Liu.

This commit is contained in:
Ayush Saxena 2019-08-03 12:15:41 +05:30
parent e503db5f44
commit 8f40856f76

View File

@ -1233,8 +1233,8 @@ public long getRandomBlockId() {
private void writeFile(FileSystem fs, int numFiles) throws IOException {
final String fileName = "/" + GenericTestUtils.getMethodName();
final Path filePath = new Path(fileName);
for (int i = 0; i < numFiles; i++) {
final Path filePath = new Path(fileName + i);
DFSTestUtil.createFile(fs, filePath, 1, (short) 1, 0);
}
}