[ http://jira.jboss.com/jira/browse/JGRP-8?page=history ]

Bela Ban updated JGRP-8:
------------------------

    Fix Version: 2.2.9
                     (was: 2.2.8)

> RpcDispatcher timeouts for nested distributed calls
> ---------------------------------------------------
>
>          Key: JGRP-8
>          URL: http://jira.jboss.com/jira/browse/JGRP-8
>      Project: JGroups
>         Type: Bug
>     Reporter: Bela Ban
>     Assignee: Bela Ban
>      Fix For: 2.2.9

>
> Original Estimate: 1 week
>         Remaining: 1 week
>
> The unit test is Deadlock2Test
> A sequence of two nested distributed calls on
> RpcDispatcher deadlocks and then timeouts.
> The test setup consists of two RpcDispatchers A and B,
> each dispatcher being able to handle innerMethod() and
> outerMethod(). innerMethod() is simple (just a
> System.out.println(), for example). outerMethod()
> internally calls innerMethod() as a group RPC:
> public void innerMethod() {
> System.out.println("innerMethod()");
> }
> public void outerMethod() {
> rpcDispatcher.callRemoteMethods(null,
> new
> MethodCall("innerMethod", new Object[0]),
> GroupRequest.GET_ALL,
> 60000);
> }
> From A, I callRemoteMethod(B, "outerMethod"). The
> following things happen:
> A
> B
> callRemoteMethod(B, "outerMethod")
> outerMethod() executes
> outerMethod() calls innerMethod() on group
> the
> group call never returns but by timeout
> innerMethod() executes
> .....
> innerMethod() group call timeouts after 60000
> The bottom-most cause of the problem is the fact that
> MessageDispatcher uses only one thread
> ("MessageDispatcher up processing thread") to handle
> incoming RPC requests and to make nested calls. Once a
> nested call is made, the thread blocks on a mutex and
> never gets woken up to handle the response to the
> nested calls, not unless the timeout expires.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to