This is an automated email from the ASF dual-hosted git repository.

weichiu 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 d41310a  HDFS-12315. Use Path instead of String to check closedFiles 
set. Contributed by Oleg Danilov.
d41310a is described below

commit d41310a15dfd2b6c9b5b1102327335e550917e0a
Author: Oleg Danilov <[email protected]>
AuthorDate: Tue Jun 18 09:06:02 2019 +0300

    HDFS-12315. Use Path instead of String to check closedFiles set. 
Contributed by Oleg Danilov.
---
 .../hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHdfsAdmin.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHdfsAdmin.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHdfsAdmin.java
index cc32a3c..6d8ba1a 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHdfsAdmin.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestHdfsAdmin.java
@@ -262,7 +262,7 @@ public class TestHdfsAdmin {
     while (openFilesRemoteItr.hasNext()) {
       String filePath = openFilesRemoteItr.next().getFilePath();
       assertFalse(filePath + " should not be listed under open files!",
-          closedFiles.contains(filePath));
+          closedFiles.contains(new Path(filePath)));
       assertTrue(filePath + " is not listed under open files!",
           openFiles.remove(new Path(filePath)));
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to