[jboss-jira] [JBoss JIRA] (JGRP-1806) UnicastLoopbackTest fails to receive all messages in the allotted time

Richard Achmatowicz (JIRA) issues at jboss.org
Thu Mar 6 11:49:35 EST 2014


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

Richard Achmatowicz commented on JGRP-1806:
-------------------------------------------

Because the channel has loopback defined, messages do not go into the network, but rather are sent directly back up the stack
A thread pool is used to queue these calls up the stack, and this is one place where delays to processing might occur.
Adding trace logging to TP shows the state of the thread pool after each message send:

{noformat}
144526 [TRACE] UDP: - received [dst: lenovo-50183, src: lenovo-50183 (2 headers), size=5 bytes], headers are UNICAST: DATA, seqno=932, UDP: [channel_name=demo-group]
144526 [TRACE] UDP: - sending msg to lenovo-50183, src=lenovo-50183, headers are UNICAST: ACK, seqno=932, UDP: [channel_name=demo-group]
144526 [TRACE] UDP: - looping back message [dst: lenovo-50183, src: lenovo-50183 (2 headers), size=0 bytes]
144526 [TRACE] UDP: - thread pool state: active tasks = 2, queued tasks = 257
{noformat}
 
Although the pool queue does grow in size, this is expected.
                
> UnicastLoopbackTest fails to receive all messages in the allotted time
> ----------------------------------------------------------------------
>
>                 Key: JGRP-1806
>                 URL: https://issues.jboss.org/browse/JGRP-1806
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.2.13
>         Environment: RHEL, Windows, Solaris
>            Reporter: Richard Achmatowicz
>            Assignee: Bela Ban
>             Fix For: 3.2.13
>
>
> UnicastLoopbackTest.testUnicastMessagesWithLoopback() is failing with the following error:
> {noformat}
> Error Message
> Test timed out before all messages were received
> Stacktrace
> java.lang.AssertionError 
> at org.testng.Assert.fail(Assert.java:94) 
> at org.jgroups.tests.UnicastLoopbackTest.testUnicastMsgsWithLoopback(UnicastLoopbackTest.java:78) 
> {noformat}
> The test does the following:
> - creates one channel with loopback enabled in the transport
> - the channel is assigned a receiver which collects the messages received and sets a Boolean valued Promise when all messages have been received 
> - the channel sends 1000 messages to itself in a burst
> - waits 20 seconds for the promise to be set to true
> The test fails because the messages do not arrive within the allotted 20 seconds.

--
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