[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-353) ConnectionConsumerTest.testRedeliveryTransacted() fails on Mac OSX 10.4.6 but passes on Windows

Tim Fox (JIRA) jira-events at lists.jboss.org
Mon Apr 30 15:19:30 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBMESSAGING-353?page=comments#action_12360913 ] 
            
Tim Fox commented on JBMESSAGING-353:
-------------------------------------

Ok thx Aaron. It's hard to find Mac users these days :)

> ConnectionConsumerTest.testRedeliveryTransacted() fails on Mac OSX 10.4.6 but passes on Windows
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBMESSAGING-353
>                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-353
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: JMS Facade, Tests and Performance
>    Affects Versions: 1.0.0, 1.0.1.CR1
>         Environment: mac osx 10.4.6
> JDK 1.4.2_09
> JDK 1.5.0_04
>            Reporter: Aaron Walker
>         Assigned To: Aaron Walker
>             Fix For: 2.0.0 Beta 1
>
>         Attachments: messaging-tests.trace.log
>
>   Original Estimate: 3 days
>  Remaining Estimate: 3 days
>
> The testRedeliveryTransacted fail with the following:
> 1) testRedeliveryTransacted(org.jboss.test.messaging.jms.ConnectionConsumerTest)junit.framework.AssertionFailedError: Didn't receive correct messages
>         at org.jboss.test.messaging.jms.ConnectionConsumerTest.testRedeliveryTransacted(ConnectionConsumerTest.java:224)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at org.jboss.test.messaging.tools.junit.SelectiveTestRunner.main(SelectiveTestRunner.java:58)
> The issue revolves around the sess.rollback around line 433 in that after the rollback and the 3 messages get redelivered and on the 3rd message the following if (!tm.getJMSRedelivered()) at line 481 evaluates to true in that the getJMSRedelivered() is false when it should be true. By placing a 1ms sleep just prior to the rollback you can get the test to pass. So after my initial investigation It appears that it may be some sort of threading issue that shows up on my mac.
> I will attached the TRACE  log for this If you look at line 765 of the log it shows that the delivery count for the message is 0 when it should be 1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list