HDFS-8810. Correct assertions in TestDFSInotifyEventInputStream class. Contributed by Surendra Singh Lilhore.
This commit is contained in:
parent
42d4e0ae99
commit
1df78688c6
|
@ -1081,6 +1081,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-8773. Few FSNamesystem metrics are not documented in the Metrics page.
|
HDFS-8773. Few FSNamesystem metrics are not documented in the Metrics page.
|
||||||
(Rakesh R via cnauroth)
|
(Rakesh R via cnauroth)
|
||||||
|
|
||||||
|
HDFS-8810. Correct assertions in TestDFSInotifyEventInputStream class.
|
||||||
|
(Surendra Singh Lilhore via aajisaka)
|
||||||
|
|
||||||
Release 2.7.2 - UNRELEASED
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class TestDFSInotifyEventInputStream {
|
||||||
Event.RenameEvent re2 = (Event.RenameEvent) batch.getEvents()[0];
|
Event.RenameEvent re2 = (Event.RenameEvent) batch.getEvents()[0];
|
||||||
Assert.assertTrue(re2.getDstPath().equals("/file2"));
|
Assert.assertTrue(re2.getDstPath().equals("/file2"));
|
||||||
Assert.assertTrue(re2.getSrcPath().equals("/file4"));
|
Assert.assertTrue(re2.getSrcPath().equals("/file4"));
|
||||||
Assert.assertTrue(re.getTimestamp() > 0);
|
Assert.assertTrue(re2.getTimestamp() > 0);
|
||||||
LOG.info(re2.toString());
|
LOG.info(re2.toString());
|
||||||
|
|
||||||
// AddOp with overwrite
|
// AddOp with overwrite
|
||||||
|
@ -378,7 +378,7 @@ public class TestDFSInotifyEventInputStream {
|
||||||
Event.RenameEvent re3 = (Event.RenameEvent) batch.getEvents()[0];
|
Event.RenameEvent re3 = (Event.RenameEvent) batch.getEvents()[0];
|
||||||
Assert.assertTrue(re3.getDstPath().equals("/dir/file5"));
|
Assert.assertTrue(re3.getDstPath().equals("/dir/file5"));
|
||||||
Assert.assertTrue(re3.getSrcPath().equals("/file5"));
|
Assert.assertTrue(re3.getSrcPath().equals("/file5"));
|
||||||
Assert.assertTrue(re.getTimestamp() > 0);
|
Assert.assertTrue(re3.getTimestamp() > 0);
|
||||||
LOG.info(re3.toString());
|
LOG.info(re3.toString());
|
||||||
|
|
||||||
// TruncateOp
|
// TruncateOp
|
||||||
|
|
Loading…
Reference in New Issue