[
https://issues.apache.org/jira/browse/SOLR-9140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294006#comment-15294006
]
Scott Blum commented on SOLR-9140:
----------------------------------
You can just go through each collection in order waiting for each one; each
time through the loop you'd need to computer a (shorter) timeout of deadline -
now.
You might need to optimize waitForState() to return immediately without setting
a watcher if the predicate is true at the outset; but should probably do that
anyway.
> Replace some state polling with CollectionStateWatchers
> -------------------------------------------------------
>
> Key: SOLR-9140
> URL: https://issues.apache.org/jira/browse/SOLR-9140
> Project: Solr
> Issue Type: Improvement
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Minor
> Attachments: SOLR-9140.patch
>
>
> There are a few places in ZkController and the collection processing code
> that directly query ZK for collection state, and then wait and poll for
> expected state changes. We can now replace these with
> CollectionStateWatchers.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]