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

Correct assertions in TestDFSInotifyEventInputStream class.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0, 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • 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

            surendralilhore Surendra Singh Lilhore
            surendralilhore Surendra Singh Lilhore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: