Skip to content

Conversation

@idegtiarenko
Copy link
Contributor

Currently, the test is flaky and sometimes fails with expected 1 but was 2 failure.
Updating the code to assert against collection content to collect additional information on the cause of the failure.

Related to: #85147

Currently, the test is flaky and sometimes fails with expected 1 but was
 2 failure. Updating the code to assert against collection content to
 collect additional information on the cause of the failure.
@idegtiarenko idegtiarenko added >test-failure Triaged test failures from CI :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.2.0 labels Mar 21, 2022
@idegtiarenko idegtiarenko requested a review from tlrx March 21, 2022 10:33
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

followIndex(client(), "leader_cluster", allowedIndex, allowedIndex);
assertBusy(() -> verifyDocuments(allowedIndex, numDocs, "*:*"));
assertThat(countCcrNodeTasks(), equalTo(1));
assertThat(getCcrNodeTasks(), contains(new CcrNodeTask("leader_cluster", allowedIndex, allowedIndex, 0)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion is currently failing with Expected: <1> but: was <2>.
I would like to know what is the extra element to be able to troubleshot this further, however this test is not reproducing locally. I am hoping this extra info will help to understand the source of the issue once the failure happens again.

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@idegtiarenko idegtiarenko merged commit e31be1b into elastic:master Mar 22, 2022
@idegtiarenko idegtiarenko deleted the 85147 branch March 22, 2022 09:39
idegtiarenko added a commit that referenced this pull request Mar 30, 2022
Currently, the test is flaky and sometimes fails with expected 1 but was
 2 failure. Updating the code to assert against collection content to
 collect additional information on the cause of the failure.

(cherry picked from commit e31be1b)
idegtiarenko added a commit to idegtiarenko/elasticsearch that referenced this pull request Mar 30, 2022
Currently, the test is flaky and sometimes fails with expected 1 but was
 2 failure. Updating the code to assert against collection content to
 collect additional information on the cause of the failure.

(cherry picked from commit e31be1b)
elasticsearchmachine pushed a commit that referenced this pull request Mar 30, 2022
#85481)

* Assert actual follow tasks instead of count (#85151)

Currently, the test is flaky and sometimes fails with expected 1 but was
 2 failure. Updating the code to assert against collection content to
 collect additional information on the cause of the failure.

(cherry picked from commit e31be1b)

* Ensure the cleanup in testAutoFollowPatterns is always happening (#85401)

In case of failure testAutoFollowPatterns will leave auto-following
pattern running that would case assertion failure in other test cases

(cherry picked from commit 92c4538)
elasticsearchmachine pushed a commit that referenced this pull request Mar 30, 2022
…ng (#85482)

* Assert actual follow tasks instead of count (#85151)

Currently, the test is flaky and sometimes fails with expected 1 but was
 2 failure. Updating the code to assert against collection content to
 collect additional information on the cause of the failure.

(cherry picked from commit e31be1b)

* Ensure the cleanup in testAutoFollowPatterns is always happening (#85401)

In case of failure testAutoFollowPatterns will leave auto-following
pattern running that would case assertion failure in other test cases

(cherry picked from commit 92c4538)

* revert java 17 usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test-failure Triaged test failures from CI v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants