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

Fix ZK sync usage to be synchronous (blocking)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • SolrCloud
    • None

    Description

      As of this writing, we only use one call to ZK's "sync" method. It's related to collection aliases – I added this. I discovered I misunderstood the semantics of the API; it syncs in the background and thus returns immediately. Looking at ZK's sync CLI command and Curator both made me realize my folly. I'm considering this only a "minor" issue because I'm not sure I've seen a bug from this; or maybe I did in spooky test failures over a year ago – I'm not sure. And we don't use this pervasively (yet).

      It occurred to me that if Solr embraced the Curator framework abstraction over ZooKeeper, I would not have fallen into that trap. I'll file a separate issue for that.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h