You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cao Manh Dat (JIRA)" <ji...@apache.org> on 2018/11/12 09:55:04 UTC

[jira] [Updated] (SOLR-12969) Inconsistency with leader when PeerSync return ALREADY_IN_SYNC

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

Cao Manh Dat updated SOLR-12969:
--------------------------------
    Summary: Inconsistency with leader when PeerSync return ALREADY_IN_SYNC  (was: Solr replication failure)

> Inconsistency with leader when PeerSync return ALREADY_IN_SYNC
> --------------------------------------------------------------
>
>                 Key: SOLR-12969
>                 URL: https://issues.apache.org/jira/browse/SOLR-12969
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: replication (java)
>            Reporter: Jeremy Smith
>            Assignee: Cao Manh Dat
>            Priority: Major
>         Attachments: SOLR-12969.patch, SOLR-12969.patch, SOLR-12969.patch
>
>
> Under certain circumstances, replication fails between a leader and follower.  The follower will not receive updates from the leader, even though the leader has a newer version.  If the leader is restarted, it will get the older version from the follower.
>  
> This was discussed on the [mailing list|https://mail-archives.apache.org/mod_mbox/lucene-solr-user/201810.mbox/%3CBYAPR04MB4406710795EA07E93BF80913ADCD0%40BYAPR04MB4406.namprd04.prod.outlook.com%3E] and [~risdenk] [wrote a script|https://github.com/risdenk/test-solr-start-stop-replica-consistency] that demonstrates this error.  He also verified that the error occurs when the script is run outside of docker.
>  
> Here is the scenario of the failure:
>  * A collection with 1 shards and 2 replicas
>  * Stop non-leader replica (B)
>  * Index more than 100 documents to the collection
>  * Start replica B, it failed to do PeerSync and starts segments replication
>  * Index document 101th to the collection
>  ** Leader's tlog: [1, 2, 3, ..., 100, 101]
>  ** Replica's tlog: [101]
>  * Stop replica B
>  * Index document 102th to the collection
>  * Start replica B, on doing PeerSync
>  ** Leader's tlog: [1, 2, 3, ..., 100, 101, 102]
>  ** Replica's tlog: [101]
>  ** Leader's high (80th): 80
>  ** Replica's low: 101
>  ** By comparison: replica's low > leader's high => ALREADY_IN_SYNC



--
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