我使用Gerrit 2.9,Zookeeper 3.4.5和Solr 6.0.0(也是5.5.1,还有许多其他版本)。 当我尝试使用reindex Gerrit时崩溃并出现错误:
[2016-05-16 14:49:43,605] DEBUG org.apache.zookeeper.ClientCnxn : Reading reply sessionid:0x154b93571e4001f, packet:: clientPath:null serverPath:null finished:false header:: 5,4 replyHeader:: 5,1035,0 request:: '/clusterstate.json,F response:: #7b7d,s{104,104,1463388906650,1463388906650,0,0,0,0,2,0,104}
[2016-05-16 14:49:43,668] DEBUG org.apache.zookeeper.ClientCnxn : Reading reply sessionid:0x154b93571e4001f, packet:: clientPath:null serverPath:null finished:false header:: 6,3 replyHeader:: 6,1035,0 request:: '/aliases.json,T response:: s{103,103,1463388906643,1463388906643,0,0,0,0,0,0,103}
[2016-05-16 14:49:43,722] DEBUG org.apache.zookeeper.ClientCnxn : Reading reply sessionid:0x154b93571e4001f, packet:: clientPath:null serverPath:null finished:false header:: 7,4 replyHeader:: 7,1035,0 request:: '/aliases.json,F response:: ,s{103,103,1463388906643,1463388906643,0,0,0,0,0,0,103}
fatal: Collection not found: changes_open
即。 Gerrit在Zookeeper中找不到Solr集合,但我创建了必要的集合,这是我从Zookeeper控制台看到的:
[zk: 127.0.0.1:2181(CONNECTED) 0] ls /collections/changes_open
[leaders, state.json, leader_elect]
Solr和Zookeeper我刚开始工作,也许我不明白一些基本原则。