Re: [jgroups-users] RpcDispatcher does not invoke remote method
Questions/problems related to using JGroups <[email protected]> Fri, 14 Jul 2017 08:45:34 +0200
| Newsgroups | gmane.comp.java.javagroups.general |
|---|---|
| Message-ID | <mailman.26847.1500014746.17807.javagroups-users@lists.sourceforge.net> |
Since you mention that the other RPCs get executed, I assume the cluster
does form (that was going to be my first questions)... So only this
specific RPC doesn't get called?
Note that the way you invoke the RPC is not very efficient, I suggest
MethodLookup instead if you want better performance.
Which handle() method did you overwrite? MessageDispatcher or
RpcDispatcher? Are you forwarding the call correctly (e.g. to super)?
Since I have no insight into your code I suggest write a small program
that reproduces the problem and post it so I can take a look.
On 13/07/17 17:20, Questions/problems related to using JGroups wrote:
> I have an RPC (async call) which unicasts the message to another node in the
> cluster. The method in the remote node is not invoked nor an exception is
> received at the caller. When I try to broadcast the message the self node's
> method is successfully called but the remote method isn't. I have overridden
> the RequestHandler and I expect the handle method to be invoked at the
> least. But this does not happen and there is no exception at the caller as
> well. There are several other RPCs in the application but one in particular
> has this issue.
> This is the call that does not get invoked,
> public void transferDump(DbSyncMetadata metadata, Queue<Address>
> outOfSyncClients, byte[] buffer, int numOfBytes) throws Exception {
> RequestOptions requestOptions = new RequestOptions(ResponseMode.GET_NONE,
> MAX_REQUEST_PROCESSING_TIME);
> requestOptions.setFlags(Flag.DONT_BUNDLE);
> requestOptions.setAnycasting(true);
> rpcDispatcher.callRemoteMethods(outOfSyncClients, "receiveDumpData", new
> Object[] {metadata, buffer, numOfBytes}, new Class[] {DbSyncMetadata.class,
> byte[].class, int.class}, requestOptions);
> }
> The dispatcher makes use of fork channel. I get no exception with the fork
> channel or the dispatcher.
>
>
>
> --
> View this message in context: http://jgroups.1086181.n5.nabble.com/RpcDispatcher-does-not-invoke-remote-method-tp11332.html
> Sent from the JGroups - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> javagroups-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/javagroups-users
>
--
Bela Ban | http://www.jgroups.org
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot