[
https://issues.apache.org/jira/browse/IGNITE-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123491#comment-15123491
]
Alexey Stelmak edited comment on IGNITE-2496 at 1/29/16 2:01 PM:
-----------------------------------------------------------------
Problem:
Register remote listeners on client nodes occurs without waiting for
confirmation from the node. As a result, the following code fragment results in
the inability to obtain node message that is sent immediately after the
registration of the listener:
{code:borderStyle=solid}
...
rmtMsg.remoteListen(MESSAGE_TOPIC, remoteLsnr)
// During this time, the client nodes do not have time to register the
listeners.
// If we add "Thread.sleep()" here, this works fine.
rmtMsg.send(MESSAGE_TOPIC, "message");
...
{code}
was (Author: astelmak):
Problem:
Register remote listeners on client nodes occurs without waiting for
confirmation from the node. As a result, the following code fragment results in
the inability to obtain node message that is sent immediately after the
registration of the listener:
{code:borderStyle=solid}
...
rmtMsg.remoteListen(MESSAGE_TOPIC, remoteLsnr)
// During this time, the client nodes do not have time to register the
listeners. If we add "Thread.sleep()" here, this works fine.
rmtMsg.send(MESSAGE_TOPIC, "message");
...
{code}
> MESSAGING: Add new remote listener on а сlientNode must be performed
> synchronously
> ----------------------------------------------------------------------------------
>
> Key: IGNITE-2496
> URL: https://issues.apache.org/jira/browse/IGNITE-2496
> Project: Ignite
> Issue Type: Bug
> Components: messaging
> Reporter: Alexey Stelmak
> Attachments: IgniteMessagingRemoteListenOnClientTest.java
>
>
> Current behavior: When you add a new remote listener on the client node, the
> addition takes place asynchronously, without waiting for confirmation from
> the client node.
> Required behavior: When you add a new listener on the client node, we need to
> wait for confirmation from the client node (as well as it works for the
> server node).
> It is necessary to create test (or modify IgniteMessagingWithClientTest) ,
> which would reproduce this bug.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)