handling hazelcastclient crashes

50 views
Skip to first unread message

Hari M S

unread,
Jan 25, 2018, 11:15:29 AM1/25/18
to Hazelcast
My setup is a hazel server and clients that connect and pick up jobs from a queue and process(perform jni operations) and post on another queue. i have scenarios where a job might crash(due to JNI or any reason - dont care) the client node. or the node might go away due to a spot price issue. is there a way for the server to catch the disconnect and handle that ? I see the message on the server log :

INFO: [172.0.20.20]:5701 [dev] [3.9.1] Destroying ClientEndpoint{connection=Connection[id=3, 0.0.0.0/0.0.0.0:5701->/172.0.20.20:32941, endpoint=[172.0.20.20]:32941, alive=false, type=JAVA_CLIENT], principal='ClientPrincipal{uuid='7c7cbdf2-1eda-491e-8abe-9b362aedfd88', ownerUuid='f4b44610-66b2-45f5-aa74-33e1b54f2717'}, firstConnection=true, authenticated=true, clientVersion=3.9.1, creationTime=1516894077403, latest statistics=null}

but beyong that I am not able to see how I can hook up something to be invoked with the details. I tried MembershipListener interface to listen for events, but dont see any print outs for memberRemoved events.

THanks !

hari

David Brimley

unread,
Jan 26, 2018, 6:07:00 AM1/26/18
to Hazelcast
Hi Hari

On the cluster member you can register a listener that will fire when a client disconnect...


Hope this helps.
David.
Reply all
Reply to author
Forward
0 new messages