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

Need a znode watcher support class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • SolrCloud
    • None

    Description

      When implementing SOLR-6249, noble.paul points out that ZkIndexSchemaReader doesn't watch the managed schema znode correctly and should use a strategy similar to what ZkStateReader does so that watchers persist across zk client connection failures:

      The correct example is the constructor of ZkStateReader
      zkClient = new SolrZkClient(zkServerAddress, zkClientTimeout, zkClientConnectTimeout,
      // on reconnect, reload cloud info
      new OnReconnect()

      { //implement stuff here }

      });
      this ensures that the watchers are persisted across reconnect.

      We need a watch support class to help developers implement watchers correctly instead of having some code do it correctly and other code not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            thelabdude Timothy Potter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: