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

Create an API to force a leader election between nodes

    XMLWordPrintableJSON

Details

    Description

      There are many reasons why Solr will not elect a leader for a shard e.g. all replicas' last published state was recovery or due to bugs which cause a leader to be marked as 'down'. While the best solution is that they never get into this state, we need a manual way to fix this when it does get into this state. Right now we can do a series of dance involving bouncing the node (since recovery paths between bouncing and REQUESTRECOVERY are different), but that is difficult when running a large cluster. Although it is possible that such a manual API may lead to some data loss but in some cases, it is the only possible option to restore availability.

      This issue proposes to build a new collection API which can be used to force replicas into recovering a leader while avoiding data loss on a best effort basis.

      Attachments

        1. SOLR-7569-testfix.patch
          2 kB
          Ishan Chattopadhyaya
        2. SOLR-7569.patch
          20 kB
          Ishan Chattopadhyaya
        3. SOLR-7569.patch
          21 kB
          Ishan Chattopadhyaya
        4. SOLR-7569.patch
          15 kB
          Ishan Chattopadhyaya
        5. SOLR-7569.patch
          15 kB
          Ishan Chattopadhyaya
        6. SOLR-7569.patch
          18 kB
          Ishan Chattopadhyaya
        7. SOLR-7569.patch
          18 kB
          Ishan Chattopadhyaya
        8. SOLR-7569.patch
          32 kB
          Ishan Chattopadhyaya
        9. SOLR-7569.patch
          34 kB
          Ishan Chattopadhyaya
        10. SOLR-7569.patch
          34 kB
          Ishan Chattopadhyaya
        11. SOLR-7569.patch
          35 kB
          Ishan Chattopadhyaya
        12. SOLR-7569.patch
          36 kB
          Ishan Chattopadhyaya
        13. SOLR-7569.patch
          8 kB
          Ishan Chattopadhyaya
        14. SOLR-7569.patch
          34 kB
          Ishan Chattopadhyaya
        15. SOLR-7569.patch
          29 kB
          Ishan Chattopadhyaya
        16. SOLR-7569.patch
          29 kB
          Ishan Chattopadhyaya
        17. SOLR-7569.patch
          30 kB
          Ishan Chattopadhyaya
        18. SOLR-7569_lir_down_state_test.patch
          6 kB
          Ishan Chattopadhyaya

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              shalin Shalin Shekhar Mangar
              Votes:
              5 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: