solrCloud 选举leader的bug
INFO: Waiting until we see more replicas up: total=3 found=1 timeoutin=171467Dec 19, 2012 10:14:40 AM org.apache.solr.cloud.ShardLeaderElectionContext waitForReplicasToComeUpINFO: Waiting until we see more replicas up: total=3 found=1 timeoutin=170965Dec 19, 2012 10:14:41 AM org.apache.solr.cloud.ShardLeaderElectionContext waitForReplicasToComeUpINFO: Waiting until we see more replicas up: total=3 found=1 timeoutin=170463Dec 19, 2012 10:14:41 AM org.apache.solr.cloud.ShardLeaderElectionContext waitForReplicasToComeUpINFO: Waiting until we see more replicas up: total=3 found=1 timeoutin=169961
你可以只接受3分钟的等待,您也可以降低等待3分钟(如10秒或0秒)
配置选举等待时间:
在solr.xml上配置:
leaderVoteWait="${leaderVoteWait:20000}"
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">
<cores defaultCoreName="video_shard1" adminPath="/admin/cores" zkClientTimeout="${zkClientTimeout:1500}" hostPort="${jetty.port:}" hostContext="solr" leaderVoteWait="${leaderVoteWait:20000}">
</cores>
</solr>