[jboss-jira] [JBoss JIRA] (JGRP-1797) NakackTest testReceptionOfAllMessages fails to receive all messages

Richard Achmatowicz (JIRA) issues at jboss.org
Tue Mar 11 12:36:01 EDT 2014


    [ https://issues.jboss.org/browse/JGRP-1797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12952058#comment-12952058 ] 

Richard Achmatowicz commented on JGRP-1797:
-------------------------------------------

I reproduced this error on my local machine by artificially bumping up the number of messages sent from 1000 to 3000 while keeping the wait timeout the same. With some additional debugging thrown in, I get results like this:

{noformat}
log4j:WARN No appenders could be found for logger (org.jgroups.conf.ClassConfigurator).
log4j:WARN Please initialize the log4j system properly.
C: received msg #1500 from C
A: received msg #1500 from C
B: received msg #1500 from C
B: received msg #1500 from B
C: received msg #1500 from B
A: received msg #1500 from B
C: received msg #3000 from C
Channel C: all messages sent in 718 ms
A: received msg #3000 from C
B: received msg #3000 from C
Channel B: all messages sent in 758 ms
B: received msg #3000 from B
A: received msg #3000 from B
C: received msg #3000 from B
java.lang.AssertionError: Incorrect number of messages received by the receiver thread: A: 5950 messages,B: 5886 messages,C: 5994 messages 
Expected :true
Actual   :false
{noformat}

This indicated that there may be some possible interference in updating the message counts in the receivers. Changing the receiver method to synchronized fixes the problem.
                
> NakackTest testReceptionOfAllMessages fails to receive all messages
> -------------------------------------------------------------------
>
>                 Key: JGRP-1797
>                 URL: https://issues.jboss.org/browse/JGRP-1797
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.2.13
>         Environment: RHEL (5/24), Solaris (6/24), HPUX (1/2) where x/y means x failures over y test executions.
>            Reporter: Richard Achmatowicz
>            Assignee: Bela Ban
>             Fix For: 3.2.13
>
>         Attachments: stdout.txt
>
>
> This test does the following:
> - involves channels A, B, and C where only B and C are senders and all are receivers
> - B and C send 1000 multicast messages
> - checks that all messages are received and in the correct order
> This test is failing intermittently but quite often.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list