[
https://issues.apache.org/jira/browse/SOLR-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14060051#comment-14060051
]
Varun Thacker commented on SOLR-6238:
-------------------------------------
bq. Leader -> doc gets past zk check
I don't know where this is done. Can someone point me to the piece of code.
This test can reproduce the scenario and this is what the logs say on the
leader (new) server -
{noformat}
51855 T88 C7 P50739 oasup.DistributedUpdateProcessor.doDefensiveChecks ERROR
Request says it is coming from leader, but we are the leader:
distrib.from=http://127.0.0.1:50730/g/collection1/&update.distrib=FROMLEADER&wt=javabin&version=2
51856 T88 C7 P50739 oasup.LogUpdateProcessor.finish [collection1] webapp=/g
path=/update
params={distrib.from=http://127.0.0.1:50730/g/collection1/&update.distrib=FROMLEADER&wt=javabin&version=2}
{} 0 3
51856 T88 C7 P50739 oasc.SolrException.log ERROR
org.apache.solr.common.SolrException: Request says it is coming from leader,
but we are the leader
{noformat}
> Specialized test case for leader recovery scenario
> --------------------------------------------------
>
> Key: SOLR-6238
> URL: https://issues.apache.org/jira/browse/SOLR-6238
> Project: Solr
> Issue Type: Improvement
> Reporter: Varun Thacker
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 4.10
>
> Attachments: SOLR-6238.patch
>
>
> A scenario which could happen at least before the addition of
> LeaderInitiatedRecoveryThread I think. Also this can happen only if one is
> using a non cloud aware client ( which might be quite a few users ) given
> that we have only SolrJ
> Events are in chronological order -
> Leader -> Lost Connection with ZK
> Replica -> Became leader
> Leader -> add document is successful. Forwards it to the replica
> Replica -> add document is unsuccessful as it is the leader and the request
> says it is coming from a leader
> So as of now the the Replica(new leader) won't have the doc but the
> leader(old leader) will have the document.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]