petrov-mg commented on code in PR #13346:
URL: https://github.com/apache/ignite/pull/13346#discussion_r3564518459
##########
modules/zookeeper/src/main/java/org/apache/ignite/spi/discovery/zk/internal/ZookeeperDiscoveryImpl.java:
##########
@@ -1164,6 +1174,18 @@ private void
marshalCredentialsOnJoin(ZookeeperClusterNode node) throws IgniteSp
}
}
+ /**
+ * Sends from-Ignite custom event, not Zookeeper-related. Is aware of
distributed {@link OperationContext}.
+ *
+ * @see ZkCustomEventMessage
+ */
+ public void sendExternalCustomMessage(DiscoverySpiCustomMessage msg) {
+ // Holds the distributed operation context.
+ msg = new ZkCustomEventMessage(msg,
opCtxDispatcher.collectDistributedAttributes());
+
+ sendCustomMessage(msg);
+ }
Review Comment:
Up to you whether to remove the `null` check for `msg`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]