Hazelcast error while fetching IMap data from Hazelcast server

555 views
Skip to first unread message

otherpu...@gmail.com

unread,
Jun 15, 2016, 4:40:43 AM6/15/16
to Hazelcast

Hi,



We are facing an issue while fetching the data(stored in IMap)  from hazel cast server.

Issue is coming in production environment. Process is running on daily basis but the issue occurs weekly once.

First time when client tries to get the data it throws an exception mentioned below if the process restarted, it executes successfully.

I am hoping that I will get a solution.



May 25, 2016 5:51:27 AM com.hazelcast.client.connection.nio.ClientConnection
WARNING: Connection [/127.0.0.1:5701] lost. Reason: Socket explicitly closed
May 25, 2016 5:51:27 AM com.hazelcast.core.LifecycleService
INFO: HazelcastClient[hz.client_0_dev][3.5.2] is CLIENT_DISCONNECTED
May 25, 2016 5:51:27 AM com.hazelcast.client.spi.ClientPartitionService
SEVERE: Error while fetching cluster partition table!
java.util.concurrent.ExecutionException: com.hazelcast.spi.exception.TargetDisconnectedException
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveException(ClientInvocationFuture.java:188)
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveResponse(ClientInvocationFuture.java:160)
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:127)
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:102)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitionsFrom(ClientPartitionServiceImpl.java:109)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitions(ClientPartitionServiceImpl.java:94)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.access$400(ClientPartitionServiceImpl.java:44)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl$RefreshTask.run(ClientPartitionServiceImpl.java:212)
 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)
Caused by: com.hazelcast.spi.exception.TargetDisconnectedException
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:121)
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:102)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitionsFrom(ClientPartitionServiceImpl.java:109)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.getPartitions(ClientPartitionServiceImpl.java:94)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl.access$400(ClientPartitionServiceImpl.java:44)
 at com.hazelcast.client.spi.impl.ClientPartitionServiceImpl$RefreshTask.run(ClientPartitionServiceImpl.java:212)
 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)
 at ------ End remote and begin local stack-trace ------.(Unknown Source)
 at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveException(ClientInvocationFuture.java:175)
 ... 12 more

May 25, 2016 5:51:32 AM com.hazelcast.client.spi.ClientInvocationService
WARNING: There are packets which are not processed 1
May 25, 2016 5:51:33 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.partition.client.GetPartitionsRequest@1f44b572, current response: com.hazelcast.spi.exception.TargetDisconnectedException, new response: com.hazelcast.spi.exception.TargetDisconnectedException: Target[Address[127.0.0.1]:5701] disconnected.
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
May 25, 2016 5:52:00 AM com.hazelcast.client.spi.impl.ClientInvocationFuture
WARNING: The Future.set() method can only be called once. Request: com.hazelcast.map.impl.client.MapGetAllRequest@3744cc2c, current response: java.io.IOException: Not able to setup owner connection!, new response: java.io.IOException: Not able to setup owner connection!
com.hazelcast.core.HazelcastException: java.io.IOException: Not able to setup owner connection!
 at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:67)
 at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:62)
 at com.hazelcast.client.spi.ClientProxy.invoke(ClientProxy.java:164)
 at com.hazelcast.client.proxy.ClientMapProxy.getAll(ClientMapProxy.java:726)



Thanks for your help in advance

Anu

Christoph Engelbert

unread,
Jun 16, 2016, 4:31:29 AM6/16/16
to Hazelcast, otherpu...@gmail.com
Hey Anu,

It looks like the cluster became unavailable during the process.

Chris

otherpu...@gmail.com

unread,
Jun 20, 2016, 6:32:25 AM6/20/16
to Hazelcast, otherpu...@gmail.com
Hi Chris,

While executing client program first time we are facing issue and program exits but second time if we run the client program it executes successfully(Server side we are not doing any change).If cluster is unavailable during the process first time, second time also execution should fail correct me if I am wrong.


Thanks,
Anu

other purpose

unread,
Jun 20, 2016, 6:32:42 AM6/20/16
to Christoph Engelbert, Hazelcast
While executing client program first time we are facing issue and program exits but second time if we run the client program it executes successfully(Server side we are not doing any change).If cluster is unavailable during the process second time also execution should fail correct me if I am wrong.


Thanks,
Anu

otherpu...@gmail.com

unread,
Jun 29, 2016, 4:14:09 AM6/29/16
to Hazelcast, noctar...@googlemail.com, otherpu...@gmail.com
Any update on this?

Thanks,
Anu
Reply all
Reply to author
Forward
0 new messages