You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Erick Erickson (Jira)" <ji...@apache.org> on 2020/07/19 22:03:00 UTC

[jira] [Commented] (SOLR-11656) TLOG replication doesn't work properly after rebalancing leaders.

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

Erick Erickson commented on SOLR-11656:
---------------------------------------

[~tflobbe] Any comments? The fix is a small chunk of code. I've updated the patch so it applies to trunk making a couple of very minor changes along the way.

Apologies to [~yuyano]  for taking sooooo long to get to this.

> TLOG replication doesn't work properly after rebalancing leaders.
> -----------------------------------------------------------------
>
>                 Key: SOLR-11656
>                 URL: https://issues.apache.org/jira/browse/SOLR-11656
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>    Affects Versions: 7.1
>            Reporter: Yuki Yano
>            Assignee: Erick Erickson
>            Priority: Major
>         Attachments: SOLR-11656.patch, SOLR-11656.patch
>
>
> With TLOG replica type, the replication may stop after invoking rebalance leaders API.
> This can be reproduced by following steps:
> # Create SolrCloud with TLOG replica type.
> # Set perferredleader flag to some of no-leader nodes.
> # Invoke rebalance leaders API.
> # The replication stops in nodes which were "leader" before rebalancing. 
> Because the leader node doesn't have the replication thread, we need to create it when the status is changed from "leader" to "replica". On the other hand, rebalance leaders API doesn't consider this matter, and the replication may stop if the status is changed from "leader" to "replica" by rebalance leaders.
> Note that, we can avoid this problem if we reload or restart Solr after rebalancing leaders.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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