This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8f40856 HDFS-14669.
TestDirectoryScanner#testDirectoryScannerInFederatedCluster fails
intermittently in trunk. Contributed by qiang Liu.
8f40856 is described below
commit 8f40856f762bf6b19c8162015491a71883eb1203
Author: Ayush Saxena <[email protected]>
AuthorDate: Sat Aug 3 12:15:41 2019 +0530
HDFS-14669. TestDirectoryScanner#testDirectoryScannerInFederatedCluster
fails intermittently in trunk. Contributed by qiang Liu.
---
.../org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java
index 0c8fb37..2547001 100644
---
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java
+++
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestDirectoryScanner.java
@@ -1233,8 +1233,8 @@ public class TestDirectoryScanner {
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);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]