When you block communication between Zookeeper and the leader, the ZK client inside Solr will disconnect and its session will expire after the session timeout. At this point a new leader should be elected automatically. The default timeout is 30 seconds. You should be able to see the value in solr.xml property named "zkClientTimeout".
On Tue, Feb 27, 2018 at 2:06 PM, zahra121 <z.aminolro...@gmail.com> wrote: > Suppose I have a node which is a leader in SolrCloud. > > When I block this leader's SolrCloud and Zookeeper ports by the command > "firewall-cmd --remove-port=<SolrPort>/tcp --permanent", the leader does > not > change automatically and this leader status remains active in solr admin > UI. > > Thus, I decided to change the leader manually. I tried REBALANCELEADERS and > ADDROLE commands in solrCloud, however the leader did not change! > > How can I manually change the leader if the firewall blocks the SolrCloud > ports from being listened? > > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html > -- Regards, Shalin Shekhar Mangar.