Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
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()
});
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.