Skip to content

Commit 8f40856

Browse files
committed
HDFS-14669. TestDirectoryScanner#testDirectoryScannerInFederatedCluster fails intermittently in trunk. Contributed by qiang Liu.
1 parent e503db5 commit 8f40856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,8 @@ public long getRandomBlockId() {
12331233

12341234
private void writeFile(FileSystem fs, int numFiles) throws IOException {
12351235
final String fileName = "/" + GenericTestUtils.getMethodName();
1236-
final Path filePath = new Path(fileName);
12371236
for (int i = 0; i < numFiles; i++) {
1237+
final Path filePath = new Path(fileName + i);
12381238
DFSTestUtil.createFile(fs, filePath, 1, (short) 1, 0);
12391239
}
12401240
}

0 commit comments

Comments
 (0)