[
https://issues.apache.org/jira/browse/SOLR-9113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15291110#comment-15291110
]
Alan Woodward commented on SOLR-9113:
-------------------------------------
Test failures are due to a race between a watcher being removed, and then being
re-added. This a genuine bug, as it's possible that a second notification
could be triggered between the watchers being cleared by a previous
notification, and the watchers adding themselves again, which would lead to
notifications being missed.
I'll switch the logic around, so that watchers are not removed by default,
rather only if they return 'true' at notification time.
> 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
> Fix For: 6.1
>
> Attachments: SOLR-9113.patch, 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: [email protected]
For additional commands, e-mail: [email protected]