You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Aki Yoshida <el...@googlemail.com> on 2011/04/22 00:20:49 UTC

Re: Any idea why ws.rm.ServerPersistenceTest fails from time to time?

Hi,
this is an old issue discussed in
http://cxf.547215.n5.nabble.com/Any-idea-why-ws-rm-ServerPersistenceTest-fails-from-time-to-time-td3298549.html
and tracked in CXF-3179.

I also thought the cause to be some timing issue.
I needed to have this test case to succeed more reliably.
But sometimes even with a long waiting time, the first part of the
test already failed.
So, I looked into it and found another problem.

This test is using the message loss simulator in the server's outbound
chain. That means, in the first part of the test, among the three
greeter replies from the server, the second one should get lost.
However, as the server is sending out responses concurrently and the
message loss simulator's operation isn't synchronized, I observed that
sometimes two successive messages were getting lost. And when this
situation happens, the first part of the test will be failing.

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


Regards, Aki

Re: Any idea why ws.rm.ServerPersistenceTest fails from time to time?

Posted by Daniel Kulp <dk...@apache.org>.
On Friday 22 April 2011 1:20:33 AM Dennis Sosnoski wrote:
> Sounds great, Aki. Why don't you go ahead and commit your fix?

Because with the minotaur hardware upgrades this week, the infra folks haven't 
done any accont creations this week yet.  :-(

Dan


>    - Dennis
> 
> On 04/22/2011 10:20 AM, Aki Yoshida wrote:
> > Hi,
> > this is an old issue discussed in
> > http://cxf.547215.n5.nabble.com/Any-idea-why-ws-rm-ServerPersistenceTest-
> > fails-from-time-to-time-td3298549.html and tracked in CXF-3179.
> > 
> > I also thought the cause to be some timing issue.
> > I needed to have this test case to succeed more reliably.
> > But sometimes even with a long waiting time, the first part of the
> > test already failed.
> > So, I looked into it and found another problem.
> > 
> > This test is using the message loss simulator in the server's outbound
> > chain. That means, in the first part of the test, among the three
> > greeter replies from the server, the second one should get lost.
> > However, as the server is sending out responses concurrently and the
> > message loss simulator's operation isn't synchronized, I observed that
> > sometimes two successive messages were getting lost. And when this
> > situation happens, the first part of the test will be failing.
> > 
> > When I made the MessageLossSimulator's handleMessage method
> > synchronized to avoid this problem, this problem disappeared and it
> > seems the waiting time can even be made shorter.
> > 
> > 
> > Regards, Aki

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Re: Any idea why ws.rm.ServerPersistenceTest fails from time to time?

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Sounds great, Aki. Why don't you go ahead and commit your fix?

   - Dennis


On 04/22/2011 10:20 AM, Aki Yoshida wrote:
> Hi,
> this is an old issue discussed in
> http://cxf.547215.n5.nabble.com/Any-idea-why-ws-rm-ServerPersistenceTest-fails-from-time-to-time-td3298549.html
> and tracked in CXF-3179.
>
> I also thought the cause to be some timing issue.
> I needed to have this test case to succeed more reliably.
> But sometimes even with a long waiting time, the first part of the
> test already failed.
> So, I looked into it and found another problem.
>
> This test is using the message loss simulator in the server's outbound
> chain. That means, in the first part of the test, among the three
> greeter replies from the server, the second one should get lost.
> However, as the server is sending out responses concurrently and the
> message loss simulator's operation isn't synchronized, I observed that
> sometimes two successive messages were getting lost. And when this
> situation happens, the first part of the test will be failing.
>
> When I made the MessageLossSimulator's handleMessage method
> synchronized to avoid this problem, this problem disappeared and it
> seems the waiting time can even be made shorter.
>
>
> Regards, Aki
>