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

SolrZkClient does not guarantee that a watch object will only be triggered once for a given notification

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0
    • 5.2, 6.0
    • SolrCloud
    • None

    Description

      The SolrZkClient provides methods such as getData or exists. The problem is that the client automatically wraps the provided watcher with a new watcher (see here) which breaks the guarantee that "a watch object, or function/context pair, will only be triggered once for a given notification". This creates undesirable effects when we are registering the same watch is the Watcher callback method.

      A possible solution would be to introduce a SolrZkWatcher class, that will take care of submitting the job to the zkCallbackExecutor. Components in SolrCloud will extend this class and implement their own callback method. This will ensure that the watcher object that zookeeper receives remains the same.

      See SOLR-6462 for background information.

      Attachments

        1. SOLR-6621
          12 kB
          Renaud Delbru

        Issue Links

          Activity

            People

              markrmiller@gmail.com Mark Miller
              rendel Renaud Delbru
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: