You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2016/05/16 08:36:12 UTC

[jira] [Updated] (SOLR-9113) Make it easier to use CollectionStateWatchers

     [ https://issues.apache.org/jira/browse/SOLR-9113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated SOLR-9113:
--------------------------------
    Attachment: SOLR-9113.patch

Patch with proposed API change.  CollectionStateWatcher.onStateChange() now returns a boolean - true if the watcher doesn't need to be re-registered, false otherwise.

This also fixes the flaky testSimpleCollectionWatch() test.

> Make it easier to use CollectionStateWatchers 
> ----------------------------------------------
>
>                 Key: SOLR-9113
>                 URL: https://issues.apache.org/jira/browse/SOLR-9113
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: SOLR-9113.patch
>
>
> SOLR-8323 adds the notion of a CollectionStateWatcher to ZkStateReader, but it's not actually that easy to use - you need to remember to re-register it if necessary, and it can fire immediately if it's the first watcher to be registered on a collection.



--
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