[jboss-jira] [JBoss JIRA] (JGRP-1590) NotifyingFuture: listener should be added before future is returned
Bela Ban (JIRA)
jira-events at lists.jboss.org
Thu Feb 14 02:44:57 EST 2013
Bela Ban created JGRP-1590:
------------------------------
Summary: NotifyingFuture: listener should be added before future is returned
Key: JGRP-1590
URL: https://issues.jboss.org/browse/JGRP-1590
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 3.3
All (Rpc,Message)Dispatcher calls which return a NotifyingFuture should have an additional parameter FutureListener, which should be registered with the future *before* the call is invoked.
In the current code, what can happen is:
- Caller invokes an RPC on 10 nodes
- The call is invoked
- A future is returned
- Results from the first 3 members are received and set in their futures
- The caller registers a FutureListener with the futures
- The next 7 results are returned, and the listeners invoked
--> We only get 7 results and would have to do a get on the first 3 futures to obtain all results
SOLUTION:
- Add an additional parameter (FutureListener) to the callXXWithFuture() methods, which registers the listener before invoking the call
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list