hazelcast分区没有所有者例外

时间:2016-03-18 20:21:07

标签: hazelcast

当我尝试向hazelcast主题发送消息时,我收到以下异常。将hazelcast客户端用于hazelcast节点(hazelcast 3.6)

有关这可能是什么的任何想法?它几乎是我正在使用的基本的开箱即用服务器和客户端配置。

Caused by: java.util.concurrent.ExecutionException: com.hazelcast.client.HazelcastClientNotActiveException: Partition does not have owner. partitionId : 25
    at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveResponse(ClientInvocationFuture.java:146)
    at com.hazelcast.client.spi.impl.ClientInvocationFuture.get(ClientInvocationFuture.java:100)
    at com.hazelcast.client.util.ClientDelegatingFuture.get(ClientDelegatingFuture.java:118)
    at com.hazelcast.client.util.ClientDelegatingFuture.get(ClientDelegatingFuture.java:105)
    at com.hazelcast.client.proxy.ClientReliableTopicProxy.addWithBackoff(ClientReliableTopicProxy.java:128)
    at com.hazelcast.client.proxy.ClientReliableTopicProxy.publish(ClientReliableTopicProxy.java:102)
    ... 10 more

Caused by: com.hazelcast.client.HazelcastClientNotActiveException: Partition does not have owner. partitionId : 25
    at com.hazelcast.client.spi.impl.ClientInvocation.notifyException(ClientInvocation.java:180)
    at com.hazelcast.client.spi.impl.ClientInvocation.invoke(ClientInvocation.java:137)
    at com.hazelcast.client.proxy.ClientRingbufferProxy.addAsync(ClientRingbufferProxy.java:163)
    at com.hazelcast.client.proxy.ClientReliableTopicProxy.addWithBackoff(ClientReliableTopicProxy.java:128)
    at com.hazelcast.client.proxy.ClientReliableTopicProxy.publish(ClientReliableTopicProxy.java:102)
    at com.rbccm.sabre.dataloader.infra.msg.hazelcast.HzTopicPublisher.publish(HzTopicPublisher.java:34)
    at com.rbccm.sabre.dataloader.infra.monitor.MonitorMessagePublisher.publishExpectedFiles(MonitorMessagePublisher.java:21)
    at com.rbccm.sabre.dataloader.infra.DefaultLoadSequence.execute(DefaultLoadSequence.java:41)
    at com.rbccm.sabre.dataloader.DataLoaderServiceImpl.load(DataLoaderServiceImpl.java:30)
    at com.rbccm.sabre.dataloader.controller.DataLoaderController.load(DataLoaderController.java:80)
    at com.rbccm.sabre.dataloader.controller.ControllerRequestConsumer.consume(ControllerRequestConsumer.java:51)
    at com.rbccm.processmanager.common.pubsub.ProcessEventQueueHandler$1.run(ProcessEventQueueHandler.java:52)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    at ------ End remote and begin local stack-trace ------.(Unknown Source)
    at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveResponse(ClientInvocationFuture.java:133)
    ... 15 more

2 个答案:

答案 0 :(得分:3)

HazelcastClientNotActiveException表示客户端在尝试获取分区表以发送主题消息时已关闭。您需要关注客户决定关闭的原因。

答案 1 :(得分:0)

@sancar建议,真正的问题是 HazelcastClientNotActiveException ,在我的情况下,我在服务器上遇到了以下异常:

[com.hazelcast.nio.tcp.TcpIpConnectionErrorHandler] (hz._hzInstance_1_prov0-group.cached.thread-4) [10.131.2.28]:5701 [prov0-group] [3.12.5] Removing connection to endpoint [10.129.17.173]:5701 Cause => java.net.SocketException {Connection refused to address /10.129.17.173:5701}, Error-Count: 5

一旦我解决了缓存开始正常工作的问题