Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1843

Falcon build failure - org.apache.falcon.messaging.JMSMessageConsumerTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 0.9
    • 0.10
    • falcon-unit
    • None

    Description

      Error seen is this.

      Running org.apache.falcon.messaging.JMSMessageConsumerTest
      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.855 sec <<< FAILURE! - in org.apache.falcon.messaging.JMSMessageConsumerTest
      testJMSMessagesForOozieCoord(org.apache.falcon.messaging.JMSMessageConsumerTest)  Time elapsed: 0.14 sec  <<< FAILURE!
      org.mockito.exceptions.verification.NeverWantedButInvoked:
      workflowJobEndNotificationService.notifySuccess(
          <any>
      );
      Never wanted here:
      -> at org.apache.falcon.messaging.JMSMessageConsumerTest.testJMSMessagesForOozieCoord(JMSMessageConsumerTest.java:276)
      But invoked here:
      -> at org.apache.falcon.messaging.JMSMessageConsumer.invokeListener(JMSMessageConsumer.java:221)
      
      	at org.apache.falcon.messaging.JMSMessageConsumerTest.testJMSMessagesForOozieCoord(JMSMessageConsumerTest.java:276)
      

      This was fixed by renaming @BeforeMethod from setup() to init(). The fix resulted in following error

      Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 3.857 sec <<< FAILURE! - in org.apache.falcon.messaging.JMSMessageConsumerTest
      testJMSMessagesForOozieCoord(org.apache.falcon.messaging.JMSMessageConsumerTest)  Time elapsed: 0.036 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<2> but was:<3>
      	at org.testng.Assert.fail(Assert.java:89)
      	at org.testng.Assert.failNotEquals(Assert.java:489)
      	at org.testng.Assert.assertEquals(Assert.java:118)
      	at org.testng.Assert.assertEquals(Assert.java:260)
      	at org.testng.Assert.assertEquals(Assert.java:270)
      	at org.apache.falcon.messaging.JMSMessageConsumerTest.testJMSMessagesForOozieCoord(JMSMessageConsumerTest.java:273)
      

      Attachments

        1. FALCON-1843.patch
          2 kB
          Balu Vellanki

        Activity

          People

            bvellanki Balu Vellanki
            bvellanki Balu Vellanki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: