[
https://issues.apache.org/jira/browse/SOLR-17581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914799#comment-17914799
]
ASF subversion and git services commented on SOLR-17581:
--------------------------------------------------------
Commit e512461bda9de8e6b2db639f3807d99a394d45c7 in solr's branch
refs/heads/branch_9x from Pierre Salagnac
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=e512461bda9 ]
SOLR-17581: Less ZK watches in tests. (#3036)
Introduce new test variant of waitForState(), that does not wait on live node
changes when we're only interested in
the collection state. This is a test change only.
(cherry picked from commit bbbff85b2b4a6fcbfcd6006f62d2c1d10f068ca3)
> Less Zookeeper watches in tests
> -------------------------------
>
> Key: SOLR-17581
> URL: https://issues.apache.org/jira/browse/SOLR-17581
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Pierre Salagnac
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h
> Remaining Estimate: 0h
>
> This is a follow-up item of SOLR-17453.
> Production code has two variants of {{waitForState()}} method. First one only
> checks a collection {{{}state.json{}}}, while the second also checks the list
> of live nodes in addition to the collection state. When expected condition is
> not found immediately, Zookeeper watches are set on both collection state and
> live node list.
> In test utilities, only a variant that checks both the collection state and
> list of live nodes exists. Quite often, this method is used when the test
> wants to check a condition on the collection state only. It means a useless
> watch is set on the list of live nodes.
> The proposal is to introduce a test variant of {{waitForState()}} that
> accepts only a condition on collection state, and uses it in all tests that
> don't want to check live nodes. Goal is to reduce complexity of test for
> slightly faster execution and maybe catch some issues.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]