[jboss-jira] [JBoss JIRA] (JGRP-2039) RpcDispatcher: async RPCs should be invoked immediately

Bela Ban (JIRA) issues at jboss.org
Mon Jul 11 04:18:00 EDT 2016


    [ https://issues.jboss.org/browse/JGRP-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263534#comment-13263534 ] 

Bela Ban edited comment on JGRP-2039 at 7/11/16 4:17 AM:
---------------------------------------------------------

Works as designed: when 5 RPCs which return futures are invoked, sometimes it took more than 5s for all futures to complete.

The reason was that messages in batches (even of OOB messages) were processed by a thread from the OOB thread pool one-by-one. There are 2 solutions to make this processing parallel: 
# Use the Asynchronous Invocation API [1]
# Mark messages as {{OOB}} and {{DONT_BUNDLE}}. These messages are then extracted from the batch at the receiver and dispatched individually by separate OOB threads.

Unit test is {{RpcDispatcherTest.testMultipleFutures()}}

[1] http://www.jgroups.org/manual/index.html#AsyncInvocation


was (Author: belaban):
Works as designed: when 5 RPCs which return futures are invoked, sometimes it took more than 5s for all futures to complete.

The reason was that messages in batches (even of OOB messages) were processed by a thread from the OOB thread pool one-by-one. There are 2 solutions to make this processing parallel: 
# one
# two

Unit test is {{RpcDispatcherTest.testMultipleFutures()}}

> RpcDispatcher: async RPCs should be invoked immediately
> -------------------------------------------------------
>
>                 Key: JGRP-2039
>                 URL: https://issues.jboss.org/browse/JGRP-2039
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 4.0
>
>
> Invoking async RPCs in rapid succession on a method that sleeps for 5 secs should lead to getting all results after 5 secs.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list