Hi, the suggestion to use BEFORE_NODE_START doesn't work, I'm getting org.apache.ignite.IgniteCheckedException: Grid is in invalid state to perform this operation. It either not started yet or has already being or have stopped [igniteInstanceName=Ignite IDKit Server, state=STARTING]
I got it working by creating a new lifecycle event BEFORE_CLUSTER_JOIN and calling "notifyLifecycleBeans(BEFORE_CLUSTER_JOIN)" at https://github.com/apache/ignite/blob/7d4e1fd118845f6e14638520ac10881deadd570c/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L1075-L1075 (slightly further in the code than I suggested previously). I'll try your suggestion to use PluginProvider next. On Wed, Dec 19, 2018 at 2:38 PM aealexsandrov <[email protected]> wrote: > Hi, > > Depends on what you are going to archive: > > In case if you are going to just collect some information then you can use: > > https://apacheignite.readme.io/docs/ignite-life-cycle > > BEFORE_NODE_START > > Invoked before Ignite node startup routine is initiated. > > In case if you are going to make some desition about should a node be > joined > or not that you can use the next method (in a separate plugin): > > > https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/plugin/PluginProvider.html#validateNewNode-org.apache.ignite.cluster.ClusterNode- > > BR, > Andrei > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
