You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Timothy Potter (JIRA)" <ji...@apache.org> on 2014/09/29 19:26:34 UTC
[jira] [Closed] (SOLR-6571) Need a znode watcher support class
[ https://issues.apache.org/jira/browse/SOLR-6571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Potter closed SOLR-6571.
--------------------------------
Resolution: Won't Fix
Looks like ZkIndexSchemaReader is the only place where this isn't done correctly so there's not really any general problem here. Will fix the schema reader as part of SOLR-6249
> Need a znode watcher support class
> ----------------------------------
>
> Key: SOLR-6571
> URL: https://issues.apache.org/jira/browse/SOLR-6571
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud
> Reporter: Timothy Potter
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org