You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Ivan Bessonov (Jira)" <ji...@apache.org> on 2019/12/23 14:05:00 UTC
[jira] [Created] (IGNITE-12487) Inconsistent GridIoManager API for
sendToGridTopic(Collection nodes) and sendToGridTopic(UUID nodeId)
Ivan Bessonov created IGNITE-12487:
--------------------------------------
Summary: Inconsistent GridIoManager API for sendToGridTopic(Collection nodes) and sendToGridTopic(UUID nodeId)
Key: IGNITE-12487
URL: https://issues.apache.org/jira/browse/IGNITE-12487
Project: Ignite
Issue Type: Improvement
Reporter: Ivan Bessonov
Assignee: Ivan Bessonov
Fix For: 2.9
Method
{{1}}{{ctx.io().sendToGridTopic(Collection nodes, ....)}}
will throw exception "Internal Ignite code should never call the method with local node in a node list."
But at the same time
{{1}}{{ctx.io().sendToGridTopic(((IgniteEx)ignite).localNode().id(), ...)}}
Works without any exception.
From my point of view we should not throw exception.
Processing messages in common listener is much more comfortable than writing same code twice, one for remote nodes and one for local.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)