You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2018/05/30 04:41:00 UTC

[jira] [Reopened] (SOLR-12388) Enable a strict ZooKeeper-connected search request mode, in which search requests will fail when the coordinating node can't communicate with ZooKeeper

     [ https://issues.apache.org/jira/browse/SOLR-12388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Rowe reopened SOLR-12388:
-------------------------------

{{SearchHandlerTest.testRequireZkConnectedDistrib()}} has been failing, e.g. from [https://jenkins.thetaphi.de/job/Lucene-Solr-master-Windows/7342/]:

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=SearchHandlerTest -Dtests.method=testRequireZkConnectedDistrib -Dtests.seed=E359688CFB80DF17 -Dtests.slow=true -Dtests.locale=zh-Hans-CN -Dtests.timezone=Asia/Choibalsan -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
   [junit4] FAILURE 7.29s J0 | SearchHandlerTest.testRequireZkConnectedDistrib <<<
   [junit4]    > Throwable #1: java.lang.AssertionError
   [junit4]    > 	at __randomizedtesting.SeedInfo.seed([E359688CFB80DF17:5BD7510D308794B0]:0)
   [junit4]    > 	at org.apache.solr.handler.component.SearchHandlerTest.testRequireZkConnectedDistrib(SearchHandlerTest.java:249)
   [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   [junit4]    > 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   [junit4]    > 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   [junit4]    > 	at java.base/java.lang.Thread.run(Thread.java:832)
{noformat}

I'll add some debug printing to help figure out what's happening.

> Enable a strict ZooKeeper-connected search request mode, in which search requests will fail when the coordinating node can't communicate with ZooKeeper
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-12388
>                 URL: https://issues.apache.org/jira/browse/SOLR-12388
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: search, SolrCloud
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>            Priority: Minor
>             Fix For: 7.4, master (8.0)
>
>         Attachments: SOLR-12388.patch
>
>
> Right now, a Solr node will return the results of a search request even if it cannot communicate with ZooKeeper at the time it receives the request. This may result in stale or incorrect results if there have been major changes to the collection structure that the node has not been informed of via ZooKeeper.  When this happens, as long as all known shards respond, the response will succeed, and a {{zkConnected}} header set to {{false}} is included in the search response.
> There should be an option to instead fail requests under these conditions, to prevent stale or incorrect results.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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