ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkarachentsev <dkarachent...@gridgain.com>
Subject Re: How to identify stale ignite client in case of data grid restart and auto reconnect to cluster
Date Tue, 06 Feb 2018 15:38:41 GMT

This exception says that client node was stopped, but by default it should
wait for servers. In other words, wait for reconnect, in this case it throws
IgniteClientDisconnectedException that contains future on which you may wait
for reconnect event.
You may locally listen for EventType.EVT_CLIENT_NODE_DISCONNECTED to be
notified that client node was disconnected [1].

But STOPPED state means that node was actually stopped. To get node status
you may use Ignition.state() method and/or register your LifecycleBean
implementation (IgniteConfiguration.setLifecycleBeans()).

[1] https://apacheignite.readme.io/docs/events#section-local-events


Sent from: http://apache-ignite-users.70518.x6.nabble.com/

View raw message