synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SYNAPSE-491) Sporadic test failures in NIO HTTP tests
Date Sat, 27 Dec 2008 10:45:44 GMT

     [ https://issues.apache.org/jira/browse/SYNAPSE-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen updated SYNAPSE-491:
------------------------------------

    Attachment: 01-debug.log

Attached log file for a failed test run.

> Sporadic test failures in NIO HTTP tests
> ----------------------------------------
>
>                 Key: SYNAPSE-491
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-491
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>            Reporter: Andreas Veithen
>            Priority: Minor
>         Attachments: 01-debug.log
>
>
> From time to time, one or more of the tests in HttpCoreNIOListenerTest fail with the
following assertion failure:
> junit.framework.AssertionFailedError: No increase in bytes sent
>     at junit.framework.Assert.fail(Assert.java:47)
>     at junit.framework.Assert.assertTrue(Assert.java:20)
>     at org.apache.axis2.transport.testkit.axis2.client.AxisTestClient.afterReceive(AxisTestClient.java:115)
>     at org.apache.axis2.transport.testkit.tests.MessageTestCase.runTest(MessageTestCase.java:64)
>     ...
> The code containing the assertion looks as follows:
>         if (sender instanceof ManagementSupport) {
>             ManagementSupport sender = (ManagementSupport)this.sender;
>             Assert.assertEquals(messagesSent+1, sender.getMessagesSent());
>             Assert.assertTrue("No increase in bytes sent", sender.getBytesSent() >
bytesSent);
>         }
> This would mean that under some circumstances the transport sender doesn't correctly
update the metrics for bytes sent (while the number of messages sent is increased as expected).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message