[
https://issues.apache.org/jira/browse/SOLR-10611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mikhail Khludnev updated SOLR-10611:
------------------------------------
Attachment: SOLR-10611.patch
[^SOLR-10611.patch] the reproducer and the fix.
h3. Summary
SOLR-9867 make SDP.cores assign in the end of init(). Thus, early sync request
got 500 (not 503 see below) {{Error processing the request. CoreContainer is
either not initialized or shutting down.}}. And it brokes synchronisation.
This fix makes SDP.doFilter() respond with 503 on early request and makes
PeerSync retry on that code.
h3. However
I suppose it's a way to nowhere since we have quite many pieces of code sends
peer request, it would be madness to retry all of them, for the same obvious
reason. I propose to step back and consider an old good latch at SOLR-9867.
cc [~mdrob], [~werder].[~erickerickson]
> TestLeaderElectionWithEmptyReplica failure on jenkins
> -----------------------------------------------------
>
> Key: SOLR-10611
> URL: https://issues.apache.org/jira/browse/SOLR-10611
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud, Tests
> Reporter: Shalin Shekhar Mangar
> Fix For: master (7.0)
>
> Attachments: consoleText.txt, SOLR-10611.patch, SOLR-10611.patch
>
>
> See https://jenkins.thetaphi.de/job/Lucene-Solr-6.x-Windows/875/
> {code}
> FAILED: org.apache.solr.cloud.TestLeaderElectionWithEmptyReplica.test
> Error Message:
> Shard shard1 replicas do not have same number of documents expected:<10> but
> was:<0>
> Stack Trace:
> java.lang.AssertionError: Shard shard1 replicas do not have same number of
> documents expected:<10> but was:<0>
> at
> __randomizedtesting.SeedInfo.seed([2093B412EF46AACD:A8C78BC841BAC735]:0)
> at org.junit.Assert.fail(Assert.java:93)
> at org.junit.Assert.failNotEquals(Assert.java:647)
> at org.junit.Assert.assertEquals(Assert.java:128)
> at org.junit.Assert.assertEquals(Assert.java:472)
> at
> org.apache.solr.cloud.TestLeaderElectionWithEmptyReplica.assertConsistentReplicas(TestLeaderElectionWithEmptyReplica.java:119)
> at
> org.apache.solr.cloud.TestLeaderElectionWithEmptyReplica.test(TestLeaderElectionWithEmptyReplica.java:101)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]