Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11656

TLOG replication doesn't work properly after rebalancing leaders.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1
    • Fix Version/s: 8.7
    • Component/s: replication (java)
    • Labels:
      None

      Description

      With TLOG replica type, the replication may stop after invoking rebalance leaders API.
      This can be reproduced by following steps:

      1. Create SolrCloud with TLOG replica type.
      2. Set perferredleader flag to some of no-leader nodes.
      3. Invoke rebalance leaders API.
      4. 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.

        Attachments

        1. SOLR-11656.patch
          6 kB
          Yuki Yano
        2. SOLR-11656.patch
          7 kB
          Erick Erickson

          Issue Links

            Activity

              People

              • Assignee:
                erickerickson Erick Erickson
                Reporter:
                yuyano Yuki Yano
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: