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

LISTALIASES should return up to date response

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      The LISTALIASES command might return a stale response due to the default eventual consistency of reads of ZooKeeper.  I think if someone calls this command (which generally won't be rapid-fire), they deserve an up to date response.  This is easily done with a one-liner; patch forthcoming.

      Returning stale alias info is the only plausible explanation I have for why a recent CI failure for AliasesIntegrationTest.tearDown() failed to detect aliases to be deleted. It calls listAliases to know which aliases exist so it can then delete them 1st.
      https://jenkins.thetaphi.de/job/Lucene-Solr-master-Solaris/1833/
      tearDown then calls MiniSolrCloudCluster.deleteAllCollections() which interestingly grabs a ZkStateReader.createClusterStateWatchersAndUpdate().... perhaps this ought to delete all aliases as well since, after all, if there were any aliases then well deleting all collections is bound to fail.  Should I file a separate issue or just handle this together?

        Attachments

        1. SOLR-12308.patch
          12 kB
          David Smiley

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: