You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Srivatsan <ra...@gmail.com> on 2013/08/23 11:21:32 UTC

Leader election

Hi,

I am using solr 4.4 for my search application. I was indexing some 1 million
docs. At that time, i accidentally killed leader node of that collection.
Indexing failed with the exception ,

/org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this
request:[http://localhost:9133/solr/collection7_shard1_replica3,
http://localhost:8983/solr/collection7_shard1_replica1]
        at
org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:333)
        at
org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:318)
        at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
        at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
        at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)/

after that i checked solr admin page, leader election didnt get triggered
for that collection. 

<http://lucene.472066.n3.nabble.com/file/n4086259/Screenshot.png> 

I couldnt able to index for that collection but i can able to search from
that collection.

Help me in this issue

Thanks in advance

Srivatsan



--
View this message in context: http://lucene.472066.n3.nabble.com/Leader-election-tp4086259.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Leader election

Posted by Srivatsan <ra...@gmail.com>.
No exceptions. And leaderVoteWait value will be used only during startup rite
? A new leader will be elected once the leader node is down. Am i right ?



--
View this message in context: http://lucene.472066.n3.nabble.com/Leader-election-tp4086259p4086290.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Leader election

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Any exceptions in the logs of other replicas. The default
leaderVoteWait time is 3 minutes after which a leader election should
have been initiated automatically.

On Fri, Aug 23, 2013 at 4:01 PM, Srivatsan <ra...@gmail.com> wrote:
> almost 15 minutes. After that i restarted the entire cluster. I am using solr
> 4.4 with 1 shard and 3 replicas
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Leader-election-tp4086259p4086287.html
> Sent from the Solr - User mailing list archive at Nabble.com.



-- 
Regards,
Shalin Shekhar Mangar.

Re: Leader election

Posted by Srivatsan <ra...@gmail.com>.
almost 15 minutes. After that i restarted the entire cluster. I am using solr
4.4 with 1 shard and 3 replicas



--
View this message in context: http://lucene.472066.n3.nabble.com/Leader-election-tp4086259p4086287.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Leader election

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
How long has the shard been without a leader? How many shards? How
many replicas per shard? Which version of Solr?

On Fri, Aug 23, 2013 at 2:51 PM, Srivatsan <ra...@gmail.com> wrote:
> Hi,
>
> I am using solr 4.4 for my search application. I was indexing some 1 million
> docs. At that time, i accidentally killed leader node of that collection.
> Indexing failed with the exception ,
>
> /org.apache.solr.client.solrj.SolrServerException: No live SolrServers
> available to handle this
> request:[http://localhost:9133/solr/collection7_shard1_replica3,
> http://localhost:8983/solr/collection7_shard1_replica1]
>         at
> org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:333)
>         at
> org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:318)
>         at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
>         at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
>         at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)/
>
> after that i checked solr admin page, leader election didnt get triggered
> for that collection.
>
> <http://lucene.472066.n3.nabble.com/file/n4086259/Screenshot.png>
>
> I couldnt able to index for that collection but i can able to search from
> that collection.
>
> Help me in this issue
>
> Thanks in advance
>
> Srivatsan
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Leader-election-tp4086259.html
> Sent from the Solr - User mailing list archive at Nabble.com.



-- 
Regards,
Shalin Shekhar Mangar.