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

TLOG replication doesn't work properly after rebalancing leaders.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.1
    • 8.7
    • replication (java)
    • 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
          7 kB
          Erick Erickson
        2. SOLR-11656.patch
          6 kB
          Yuki Yano

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: