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

Solr should remove itself from live_nodes in zk immediately on shutdown

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.2, 8.0
    • SolrCloud
    • None

    Description

      Solr currently, upon receiving the stop command, removes its entry from the zk /live_nodes znode after it has finished processing all inflight requests, just before finally shutting down.
      In this case, any applications that depend on a solr node's live_node entry to decide whether or not to query it fail once the stop command has been executed but solr has not yet fully shut down.
      Something similar occurs during startup of a solr node. The solr node seems to add it's entry to the /live_nodes in zk once it is up but before it has started accepting requests and once again, this causes dependent applications to fail in a similar fashion.
      Hence, removal of the node entry and addition of the same to the zk live_nodes immediately upon shutting down and at the very end upon coming up respectively will greatly benefit applications that depend the live_nodes znode.

      Attachments

        1. SOLR-11478.patch
          2 kB
          Cao Manh Dat

        Activity

          People

            caomanhdat Cao Manh Dat
            binoydalal93@gmail.com Binoy Dalal
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: