HDFS-12315. Use Path instead of String to check closedFiles set. Contributed by Oleg Danilov.

This commit is contained in:
Oleg Danilov 2019-06-18 09:06:02 +03:00 committed by Wei-Chiu Chuang
parent 56c621c68f
commit d41310a15d
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}