You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2011/04/21 23:35:05 UTC

[jira] [Commented] (CXF-3179) ServerPersistenceTest fail intermittently

    [ https://issues.apache.org/jira/browse/CXF-3179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022929#comment-13022929 ] 

Aki Yoshida commented on CXF-3179:
----------------------------------

Hi,
I also thought the cause to be some timing issue.
But sometimes with a large waiting value, the first part of the test already failed.
So, I looked into it and found another problem.

This test inserts the message loss simulator on the server's outbound chain. That means, among the three greeter replies from the server, the second one (not necessarily the response for TWO, but the the second response that is asynchronously sent out from the server). However, as the server is sending out responses concurrently, the message loss simulator's counter isn't synchronized, I observed that sometimes two messages were getting lost. 

When I made the MessageLossSimulator's handleMessage method synchronized, this problem disappeared and the waiting time can be made even shorter.

Regards, Aki

> ServerPersistenceTest fail intermittently
> -----------------------------------------
>
>                 Key: CXF-3179
>                 URL: https://issues.apache.org/jira/browse/CXF-3179
>             Project: CXF
>          Issue Type: Test
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 2.3.2, 2.4
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira