[jira] [Created] (IGNITE-12930) DistributedProcess fails node if unable to send single message to coordinator

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-12930) DistributedProcess fails node if unable to send single message to coordinator

Anton Vinogradov (Jira)
Maxim Muzafarov created IGNITE-12930:
----------------------------------------

             Summary: DistributedProcess fails node if unable to send single message to coordinator
                 Key: IGNITE-12930
                 URL: https://issues.apache.org/jira/browse/IGNITE-12930
             Project: Ignite
          Issue Type: Task
            Reporter: Maxim Muzafarov


The [DistributedProcess|https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/util/distributed/DistributedProcess.java] fails the local node ({{FailureHandler}} CRITICAL_ERROR thrown) if unable to send a message to the coordinator (e.g. the coordinator fails right before the single message is sent).
{code:java}
            try {
                ctx.io().sendToGridTopic(p.crdId, GridTopic.TOPIC_DISTRIBUTED_PROCESS, singleMsg, SYSTEM_POOL);
            }
            catch (IgniteCheckedException e) {
                log.error("Unable to send message to coordinator.", e);

                ctx.failure().process(new FailureContext(CRITICAL_ERROR,
                    new Exception("Unable to send message to coordinator.", e)));
            }
{code}
h4. Expected behaviour

If the {{ClusterTopologyCheckedException}} occurs need to wait for the NODE_LEFT event of the coordinator node and re-init the distributed process future.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)