[ 
https://issues.apache.org/jira/browse/SOLR-6235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057631#comment-14057631
 ] 

Mark Miller commented on SOLR-6235:
-----------------------------------

Great work tracking this down!

Indeed, it's a current limitation that you can have all nodes in a shard 
thinking they cannot be leader, even when all of them are available. This is 
not required by the distributed model we have at all, it's just a consequence 
of being over restrictive on the initial implementation - if all known replicas 
are participating, you should be able to get a leader. So I'm not sure if this 
case should be optional. But iff not all known replicas are participating and 
you still want to force a leader, that should be optional - I think it should 
default to false though. I think the system should default to reasonable data 
safety in these cases.

How best to solve this, I'm not quite sure, but happy to look at a patch. How 
do you plan on monitoring and taking action? Via the Overseer? It seems tricky 
to do it from the replicas.

> SyncSliceTest fails on jenkins with no live servers available error
> -------------------------------------------------------------------
>
>                 Key: SOLR-6235
>                 URL: https://issues.apache.org/jira/browse/SOLR-6235
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud, Tests
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.10
>
>
> {code}
> 1 tests failed.
> FAILED:  org.apache.solr.cloud.SyncSliceTest.testDistribSearch
> Error Message:
> No live SolrServers available to handle this request
> Stack Trace:
> org.apache.solr.client.solrj.SolrServerException: No live SolrServers 
> available to handle this request
>         at 
> __randomizedtesting.SeedInfo.seed([685C57B3F25C854B:E9BAD9AB8503E577]:0)
>         at 
> org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:317)
>         at 
> org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:659)
>         at 
> org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
>         at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
>         at 
> org.apache.solr.cloud.AbstractFullDistribZkTestBase.checkShardConsistency(AbstractFullDistribZkTestBase.java:1149)
>         at 
> org.apache.solr.cloud.AbstractFullDistribZkTestBase.checkShardConsistency(AbstractFullDistribZkTestBase.java:1118)
>         at org.apache.solr.cloud.SyncSliceTest.doTest(SyncSliceTest.java:236)
>         at 
> org.apache.solr.BaseDistributedSearchTestCase.testDistribSearch(BaseDistributedSearchTestCase.java:865)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to