由于未知的复制策略,Neo4j 2.3.2群集无法启动

时间:2016-01-22 01:25:56

标签: neo4j

升级到2.3.2后,启动群集时出现以下错误。

在2.3.2升级中启动此操作并且neo4j群集无法启动:

2016-01-22 00:54:42.499+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@483013b3' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 
Caused by: java.lang.RuntimeException: Unknown replication strategy
at org.neo4j.kernel.ha.transaction.TransactionPropagator$1.getReplicationStrategy(TransactionPropagator.java:115)
at org.neo4j.kernel.ha.transaction.TransactionPropagator.start(TransactionPropagator.java:175)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 14 more

1 个答案:

答案 0 :(得分:3)

此问题似乎与对conf / neo4j.properties中的ha.tx_push_strategy设置所做的更新有关。在ha.tx_push_strategy = fixed的此设置下,会发生错误。在选择更具体的策略时,即ha.tx_push_strategy = fixed_ascending,错误消失,群集形成正确。

推送策略确定一个平局,如果tx id相同,则将哪个服务器ID推送到下一个。新策略是fixed_descending和fixed_ascending。虽然fixed_descending的默认值是此版本的默认值,但fixed_ascending是更好的选择,因为选择策略在确定选择哪个实例作为下一个主节点时使用升序。因此,使用fixed_ascending可以降低在某些情况下分支数据的可能性。