Hi,
is there a way to register local listeners before a node joins the cluster?

The documentation says to register local listeners through
"ignite.events().localListen(...)", however that can only be done once e.g.
"ignite = Ignition.start(cfg)" has been called. At that point the node
might have already joined the cluster, so we might have missed events in
the meantime.

I'm thinking of adding a new lifecycle event type "BEFORE_CLUSTER_JOIN"
which I would be able to process via a Lifecycle Bean. The event would be
triggered using "notifyLifecycleBeans(BEFORE_CLUSTER_JOIN)" somewhere here
in the code:
https://github.com/apache/ignite/blob/7d4e1fd118845f6e14638520ac10881deadd570c/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L1051-L1051

Is there a better way without modifying Ignite code? Can I postpone cluster
joining? Or can I register the listeners at an earlier stage?

Reply via email to