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
Attachments
Issue Links
- is blocked by
-
SOLR-6462 forward updates asynchronously to peer clusters/leaders
- Closed