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/06/02 16:07:59 UTC

[jira] [Updated] (SOLR-9140) Replace some state polling with CollectionStateWatchers

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

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

Updated patch.  This also seems to fix the occasional failures in TestCollectionStateWatchers where a node never properly comes up.

The original patch replaced some polling in the 'delete collection' handling part of OverseerCollectionMessageProcessor, but that caused some test failures where the client that was issuing the delete didn't get its collection state updated quickly enough and so was checking stale state.  One way round this might be to make the list-collection command go via the Overseer, so that it always gets the latest state, but that's for another issue.  For now I've just not included that change.

> 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, 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org