HDFS-8810. Correct assertions in TestDFSInotifyEventInputStream class. Contributed by Surendra Singh Lilhore.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/cf80c0a6 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/cf80c0a6 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/cf80c0a6 Branch: refs/heads/YARN-2928 Commit: cf80c0a6b08a5ab2890331613377ff5ee6837631 Parents: 64efacf Author: Akira Ajisaka <aajis...@apache.org> Authored: Mon Jul 27 13:17:24 2015 +0900 Committer: Zhijie Shen <zjs...@apache.org> Committed: Mon Jul 27 12:57:38 2015 -0700 ---------------------------------------------------------------------- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/TestDFSInotifyEventInputStream.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/cf80c0a6/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 3614e01..1ddf7da 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1081,6 +1081,9 @@ Release 2.8.0 - UNRELEASED HDFS-8773. Few FSNamesystem metrics are not documented in the Metrics page. (Rakesh R via cnauroth) + HDFS-8810. Correct assertions in TestDFSInotifyEventInputStream class. + (Surendra Singh Lilhore via aajisaka) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/cf80c0a6/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSInotifyEventInputStream.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSInotifyEventInputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSInotifyEventInputStream.java index 65569d0..e7bbcac 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSInotifyEventInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSInotifyEventInputStream.java @@ -164,7 +164,7 @@ public class TestDFSInotifyEventInputStream { Event.RenameEvent re2 = (Event.RenameEvent) batch.getEvents()[0]; Assert.assertTrue(re2.getDstPath().equals("/file2")); Assert.assertTrue(re2.getSrcPath().equals("/file4")); - Assert.assertTrue(re.getTimestamp() > 0); + Assert.assertTrue(re2.getTimestamp() > 0); LOG.info(re2.toString()); // AddOp with overwrite @@ -378,7 +378,7 @@ public class TestDFSInotifyEventInputStream { Event.RenameEvent re3 = (Event.RenameEvent) batch.getEvents()[0]; Assert.assertTrue(re3.getDstPath().equals("/dir/file5")); Assert.assertTrue(re3.getSrcPath().equals("/file5")); - Assert.assertTrue(re.getTimestamp() > 0); + Assert.assertTrue(re3.getTimestamp() > 0); LOG.info(re3.toString()); // TruncateOp