[jboss-jira] [JBoss JIRA] (JGRP-1795) OOBTest testRandomRegularAndOOBMulticasts fails to receive all messages
Richard Achmatowicz (JIRA)
issues at jboss.org
Sun Feb 23 12:37:47 EST 2014
[ https://issues.jboss.org/browse/JGRP-1795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12947114#comment-12947114 ]
Richard Achmatowicz edited comment on JGRP-1795 at 2/23/14 12:36 PM:
---------------------------------------------------------------------
Some problems with this test:
- the error message is a little wierd: messages 0-20 are 21 messages, not 20!
- the way that check works, we can't tell which channel has the incorrect number of messages. It would be better to check them separately like this:
{noformat}
check(NUM_MESSAGES,one);
check(NUM_MESAGES,two);
{noformat}
- related to the above comment, when an assertion is raised, it seems that we lose all test output and cant't see the output from the failed test. This is probably a problem with JUnitXMLReporter not closinjg a file correctly when the assertion is triggered. This probably affects all test cases in the same way.
was (Author: rachmato):
Some problems with this test:
- the error message is a little wierd: messages 0-20 are 21 messages, not 20!
- the way that check works, we can't tell which channel has the incorrect number of messages. It would be better to check them separately like this:
{noformat}
check(NUM_MESSAGES,one);
check(NUM_MESAGES,two);
{noformat}
- related to the above comment, when an assertion is raised, it seems that we lose all test output and cant't see the output from the failed test. This is probably a problem with JUnitXMLReporter.
> OOBTest testRandomRegularAndOOBMulticasts fails to receive all messages
> -----------------------------------------------------------------------
>
> Key: JGRP-1795
> URL: https://issues.jboss.org/browse/JGRP-1795
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 3.2.13
> Environment: RHEL(3/24), WIN (1/6), Solaris (6/24) where (x/y) means x failures over y test executions.
> Reporter: Richard Achmatowicz
> Assignee: Bela Ban
> Fix For: 3.2.13
>
>
> This test does the following with two channels a and b:
> - adds a DISCARD layer to a to disccard 50% of down messages
> - sends 20 messages to the group, randomly using a and b as senders, and randomly choosing OOB or non-OOB
> - wait 10 seconds for 20 messages to be received by each of a and b
> - print out the messages received
> - remove the DISCARD layer from a
> - wait 2.5 seconds for further messages to arrive
> - assert that 20 messages have arrived for each channel a and b
> The test fails on the assertion, with results such as:
> {noformat}
> expected 20 elements, but got 19 (list=[1, 4, 3, 8, 6, 7, 10, 13, 15, 20, 2, 5, 9, 12, 14, 16, 17, 18, 19]), missing=[0, 11]
> {noformat}
--
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