解决 com.hazelcast.spi.exception.RetryableHazelcastException:HazelcastInstance is not active!
< 返回列表时间: 2019-11-13来源:OSCHINA
【围观】麒麟芯片遭打压成绝版,华为亿元投入又砸向了哪里?>>>
使用 hazelcast 坑爹事情,错误日志如下 com.hazelcast.spi.exception.RetryableHazelcastException: HazelcastInstance is not active! at com.hazelcast.spi.impl.NodeEngineImpl.getService(NodeEngineImpl.java:369) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl.getSegment(EventServiceImpl.java:540) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl.registerListenerInternal(EventServiceImpl.java:282) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl.registerLocalListener(EventServiceImpl.java:242) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.internal.cluster.impl.ClusterServiceImpl.addMembershipListener(ClusterServiceImpl.java:790) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.internal.management.ManagementCenterService.<init>(ManagementCenterService.java:141) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.instance.Node.start(Node.java:419) ~[hazelcast-3.11.4.jar:3.11.4] at com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:131) ~[hazelcast-3.11.4.jar:3.11.4]
解决方法
慢慢看仔细了日志文件

仔细看这个一行 Reason of failure for node join: Joining node's version 3.11.4 is not compatible with cluster version 3.12 (Rolling Member Upgrades are only supported for the next minor version) (Rolling Member Upgrades are only supported in Hazelcast Enterprise)
翻译下原因
节点加入失败的原因:加入节点的版本3.11.4与群集版本3.12不兼容(滚动成员升级仅支持下一个次要版本)(滚动成员升级仅在Hazelcast Enterprise中受支持)
版本之间不兼容,不能滚动升级。这就意味着,当升级时,整个集群都要一块重启,这对很多网站来说,是不能忍受的。据说从3.1版本后会保证小版本的兼容性。
修改依赖版本号,重新打包, 集群统一部 署。OK,完美解决!
参考
https://blog.csdn.net/hengyunabc/article/details/18514563
https://github.com/hazelcast/hazelcast/issues/14
热门排行