Skip to content

Conversation

@hendrikmuhs
Copy link

@hendrikmuhs hendrikmuhs commented Jul 25, 2019

remove the unreliable check for the state change

fixes #44813

What happened in the test failure:

There are 2 threads involved, A the managing thread(the test code), B the indexer thread. A triggers B to change the state to INDEXING and start the work. In this test B is supposed to do 5 iterations and then finish. What happened in the failure is that B changed state to INDEXING, ran 5 times and by design switched back to STARTED before A checked the state (the offending line). In other tests we do the same but sync B using a latch, so it does not finish before the latch is counted down.

Checking the indexer state is not the main purpose of this test, additionally we cover this case already in other tests, therefore removing the offending line is proper way to fix, we do not loose coverage.

The test in question has been added in 7.4, so no further backport than 7.4 required.

@hendrikmuhs hendrikmuhs added >test-failure Triaged test failures from CI v8.0.0 :ml/Transform Transform v7.4.0 labels Jul 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

Copy link

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@hendrikmuhs hendrikmuhs merged commit 6e7d061 into elastic:master Jul 25, 2019
hendrikmuhs pushed a commit that referenced this pull request Jul 25, 2019
remove the unreliable check for the state change

fixes #44813
jkakavas pushed a commit that referenced this pull request Jul 31, 2019
remove the unreliable check for the state change

fixes #44813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml/Transform Transform >test-failure Triaged test failures from CI v7.4.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncTwoPhaseIndexerTests.testFiveRuns failure

4 participants