Hi,
The solr4.0’s log always show that “Waiting for client to connect to ZooKeeper” and “Client is connected to Zookeeper” , But I look at the code , it only happen when “state == KeeperState.Expired”. We can see the value of state is syncConnected, how did it happen? Can anyone help me? 2013-07-31 08:36:53.947 [qtp1492359994-235415] INFO org.apache.zookeeper.ZooKeeper:379 - Initiating client connection, connec tString=192.168.201.66:2181,192.168.201.64:2181,192.168.201.65:2181 sessionTimeout=10000 watcher=org.apache.solr.common.cloud. ConnectionManager@d24ff04 2013-07-31 08:36:53.949 [qtp1492359994-235415] INFO o.a.s.c.cloud.ConnectionManager:156 - Waiting for client to connect to Zo oKeeper 2013-07-31 08:36:53.976 [qtp1492359994-235415-EventThread] INFO o.a.s.c.cloud.ConnectionManager:71 - Watcher org.apache.solr. common.cloud.ConnectionManager@d24ff04 name:ZooKeeperConnection Watcher:192. 168.201.66:2181,192.168.201.64:2181,192.168.201.65 :2181 got event WatchedEvent state:SyncConnected type:None path:null path:null type:None 2013-07-31 08:36:53.976 [qtp1492359994-235415] INFO o.a.s.c.cloud.ConnectionManager:174 - Client is connected to ZooKeeper 2013-07-31 08:36:53.991 [qtp1492359994-235415] INFO org.apache.zookeeper.ZooKeeper:544 - Session: 0x3401a2064eb00e3 closed 2013-07-31 08:36:54.030 [qtp1492359994-235403] INFO org.apache.solr.core.SolrCore:1897 - [news] webapp=/solr path=/update par ams={distrib.from=http://prod00081.soniu.com:16000/solr/news/&update.distrib =TOLEADER&wt=javabin&version=2} status=503 QTime=1 5020 2013-07-31 08:36:54.474 [qtp1492359994-17] INFO org.apache.solr.core.SolrCore:1897 - [news] webapp=/solr path=/update params= {distrib.from=http://prod00083.soniu.com:16000/solr/news/&update.distrib=TOL EADER&wt=javabin&version=2} status=503 QTime=15021 2013-07-31 08:36:54.488 [qtp1492359994-235415] INFO org.apache.zookeeper.ZooKeeper:379 - Initiating client connection, connec tString=192.168.201.66:2181,192.168.201.64:2181,192.168.201.65:2181 sessionTimeout=10000 watcher=org.apache.solr.common.cloud. ConnectionManager@305db171 2013-07-31 08:36:54.489 [qtp1492359994-235415] INFO o.a.s.c.cloud.ConnectionManager:156 - Waiting for client to connect to Zo oKeeper 2013-07-31 08:36:54.523 [qtp1492359994-47] INFO org.apache.solr.core.SolrCore:1897 - [news] webapp=/solr path=/update params= {distrib.from=http://prod00085.soniu.com:16000/solr/news/&update.distrib=TOL EADER&wt=javabin&version=2} status=503 QTime=15020 2013-07-31 08:36:54.531 [qtp1492359994-235415-EventThread] INFO o.a.s.c.cloud.ConnectionManager:71 - Watcher org.apache.solr. common.cloud.ConnectionManager@305db171 name:ZooKeeperConnection Watcher:192.168.201.66:2181,192.168.201.64:2181,192.168.201.6 5:2181 got event WatchedEvent state:SyncConnected type:None path:null path:null type:None 2013-07-31 08:36:54.532 [qtp1492359994-235415] INFO o.a.s.c.cloud.ConnectionManager:174 - Client is connected to ZooKeeper 2013-07-31 08:36:54.597 [qtp1492359994-235415] INFO org.apache.zookeeper.ZooKeeper:544 - Session: 0x3401a2064eb00e4 closed 2013-07-31 08:36:54.611 [qtp1492359994-235424] INFO org.apache.solr.core.SolrCore:1897 - [news] webapp=/solr path=/update par ams={distrib.from=http://prod00085.soniu.com:16000/solr/news/&update.distrib =TOLEADER&wt=javabin&version=2} status=503 QTime=1 5020 2013-07-31 08:36:54.809 [qtp1492359994-235415] INFO org.apache.zookeeper.ZooKeeper:379 - Initiating client connection, connec tString=192.168.201.66:2181,192.168.201.64:2181,192.168.201.65:2181 sessionTimeout=10000 watcher=org.apache.solr.common.cloud. ConnectionManager@66f5e34b ----------------------- 黄飞鸿 15868137416