-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Assert actual follow tasks instead of count #85151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
|
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))); |
There was a problem hiding this comment.
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.
tlrx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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)
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)
#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)
…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
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