Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8810

Correct assertions in TestDFSInotifyEventInputStream class.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0, 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Some assertions are wrong in the test. Here is an example.

          Assert.assertTrue(batch.getEvents()[0].getEventType() == Event.EventType.RENAME);
            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);
      

      https://issues.apache.org/jira/browse/HDFS-8735?focusedCommentId=14636571&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14636571

        Attachments

        1. HDFS-8810.patch
          1 kB
          Surendra Singh Lilhore

          Activity

            People

            • Assignee:
              surendrasingh Surendra Singh Lilhore
              Reporter:
              surendrasingh Surendra Singh Lilhore
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: