I have one hazelcast node running on separate ubuntu server. There is another web application deployed on tomcat which is connecting to the node. Everything is ok, until we run into this issue :
Apr 26, 2016 11:57:46 AM com.hazelcast.nio.tcp.TcpIpConnection
INFO: []:5701 [dev] [3.4] Connection [Address[]:58439] lost. Reason: java.io.EOFException[Remote socket closed!]
Apr 26, 2016 11:57:46 AM com.hazelcast.nio.tcp.ReadHandler
WARNING: []:5701 [dev] [3.4] hz._hzInstance_1_dev.IO.thread-in-1 Closing socket to endpoint Address[]:58439, Cause:java.io.EOFException: Remote socket closed!
Apr 26, 2016 11:57:46 AM com.hazelcast.nio.tcp.TcpIpConnection
INFO: []:5701 [dev] [3.4] Connection [Address[]:58438] lost. Reason: java.io.EOFException[Remote socket closed!]
Apr 26, 2016 11:57:46 AM com.hazelcast.nio.tcp.ReadHandler
WARNING: []:5701 [dev] [3.4] hz._hzInstance_1_dev.IO.thread-in-0 Closing socket to endpoint Address[]:58438, Cause:java.io.EOFException: Remote socket closed!
Apr 26, 2016 11:57:46 AM com.hazelcast.client.ClientEndpointManager
INFO: []]:5701 [dev] [3.4] Destroying ClientEndpoint{conn=Connection [
0.0.0.0/0.0.0.0:5701 ->:58439], endpoint=Address[]:58439, live=false, type=JAVA_CLIENT, principal='ClientPrincipal{uuid='e725ce7f-f208-4955-a214-1fa42d853deb', ownerUuid='3ce590a6-4f7c-4619-85d2-42e17c978e34'}', firstConnection=false, authenticated=true}
Apr 26, 2016 11:57:46 AM com.hazelcast.client.ClientEndpointManager
INFO: []:5701 [dev] [3.4] Destroying ClientEndpoint{conn=Connection [
0.0.0.0/0.0.0.0:5701 -> null], endpoint=Address[]:58438, live=false, type=JAVA_CLIENT, principal='ClientPrincipal{uuid='e725ce7f-f208-4955-a214-1fa42d853deb', ownerUuid='3ce590a6-4f7c-4619-85d2-42e17c978e34'}', firstConnection=true, authenticated=true}
Apr 26, 2016 11:57:49 AM com.hazelcast.nio.tcp.TcpIpConnection
INFO: []:5701 [dev] [3.4] Connection [Address[]:58442] lost. Reason: java.io.EOFException[Remote socket closed!]
Apr 26, 2016 11:57:49 AM com.hazelcast.nio.tcp.ReadHandler
WARNING: []:5701 [dev] [3.4] hz._hzInstance_1_dev.IO.thread-in-2 Closing socket to endpoint Address[]:58442, Cause:java.io.EOFException: Remote socket closed!
Apr 26, 2016 11:57:49 AM com.hazelcast.client.ClientEndpointManager
INFO: []:5701 [dev] [3.4] Destroying ClientEndpoint{conn=Connection [/:5701 -> ....153/.53:58443], endpoint=Address[]:58443, live=false, type=JAVA_CLIENT, principal='ClientPrincipal{uuid='4a8422fc-52f9-4ccc-9a34-0b4e44af4227', ownerUuid='3ce590a6-4f7c-4619-85d2-42e17c978e34'}', firstConnection=false, authenticated=true}
Apr 26, 2016 11:57:49 AM com.hazelcast.client.ClientEndpointManager
INFO: []:5701 [dev] [3.4] Destroying ClientEndpoint{conn=Connection [
0.0.0.0/0.0.0.0:5701 -> ....153/:58442], endpoint=Address[]:58442, live=false, type=JAVA_CLIENT, principal='ClientPrincipal{uuid='4a8422fc-52f9-4ccc-9a34-0b4e44af4227', ownerUuid='3ce590a6-4f7c-4619-85d2-42e17c978e34'}', firstConnection=true, authenticated=true}
Apr 26, 2016 11:57:51 AM com.hazelcast.nio.tcp.TcpIpConnection
INFO: []:5701 [dev] [3.4] Connection [Address[]:58443] lost. Reason: java.io.IOException[Connection reset by peer]
Apr 26, 2016 11:57:51 AM com.hazelcast.nio.tcp.WriteHandler
WARNING: []:5701 [dev] [3.4] hz._hzInstance_1_dev.IO.thread-out-0 Closing socket to endpoint Address[]:58443, Cause:java.io.IOException: Connection reset by peer
Apr 26, 2016 12:30:40 PM com.hazelcast.core.LifecycleService
INFO: []:5701 [dev] [3.4] Address[]:5701 is SHUTTING_DOWN
Apr 26, 2016 12:30:40 PM com.hazelcast.client.spi.impl.ClusterListenerThread
WARNING: Error while listening cluster events! -> ClientConnection{live=true, writeHandler=com.hazelcast.client.connection.nio.ClientWriteHandler@408d849b, readHandler=com.hazelcast.client.connection.nio.ClientReadHandler@afcfd39, connectionId=1, socketChannel=DefaultSocketChannelWrapper{socketChannel=java.nio.channels.SocketChannel[connected local=/:34093 remote=/:5701]}, remoteEndpoint=Address[]:5701}, Error: java.io.EOFException: Remote socket closed!
Apr 26, 2016 11:57:46 AM com.hazelcast.client.spi.impl.ClusterListenerThread
WARNING: Error while listening cluster events! -> ClientConnection{live=false, writeHandler=com.hazelcast.client.connection.nio.ClientWriteHandler@7bede3c0, readHandler=com.hazelcast.client.connection.nio.ClientReadHandler@3f0391d0, connectionId=1, socketChannel=DefaultSocketChannelWrapper{socketChannel=java.nio.channels.SocketChannel[closed]}, remoteEndpoint=Address[]:5701}, Error: java.nio.channels.AsynchronousCloseException
Apr 26, 2016 11:57:46 AM com.hazelcast.client.connection.nio.ClientConnection
WARNING: Connection [null] lost. Reason: Socket explicitly closed
Apr 26, 2016 11:57:46 AM com.hazelcast.core.LifecycleService
INFO: HazelcastClient[hz.client_0_dev][3.4] is CLIENT_DISCONNECTED
Apr 26, 2016 11:57:49 AM com.hazelcast.client.connection.nio.ClientConnection
WARNING: Connection [/:5701] lost. Reason: Socket explicitly closed
Apr 26, 2016 11:57:49 AM com.hazelcast.client.connection.nio.ClientConnection
WARNING: Connection [null] lost. Reason: Socket explicitly closed
Apr 26, 2016 11:57:49 AM com.hazelcast.client.spi.impl.ClusterListenerThread
WARNING: Error while listening cluster events! -> ClientConnection{live=false, writeHandler=com.hazelcast.client.connection.nio.ClientWriteHandler@40d15053, readHandler=com.hazelcast.client.connection.nio.ClientReadHandler@6df09a63, connectionId=1, socketChannel=DefaultSocketChannelWrapper{socketChannel=java.nio.channels.SocketChannel[closed]}, remoteEndpoint=Address[]:5701}, Error: java.nio.channels.AsynchronousCloseException
Apr 26, 2016 11:57:49 AM com.hazelcast.core.LifecycleService
INFO: HazelcastClient[hz.client_1_dev][3.4] is CLIENT_DISCONNECTED
Apr 26, 2016 11:57:49 AM com.hazelcast.client.spi.ClientPartitionService
SEVERE: Error while fetching cluster partition table!
com.hazelcast.core.HazelcastException: ConnectionManager is not active!!!
at com.hazelcast.client.connection.nio.ClientConnectionManagerImpl$ConnectionProcessor.call(ClientConnectionManagerImpl.java:365)
at com.hazelcast.client.connection.nio.ClientConnectionManagerImpl$ConnectionProcessor.call(ClientConnectionManagerImpl.java:350)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at com.hazelcast.util.executor.CompletableFutureTask.run(CompletableFutureTask.java:57)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
After this moment the connection is destroyed and I need to restart both applications.
Can somebody help me in finding the root cause of the issue.