Skip to content

Conversation

@imotov
Copy link
Contributor

@imotov imotov commented Jun 24, 2020

Makes RestEqlCancellationIT more deterministic by adding an assertBusy for the
cancellation propagation. It also refactors the SearchBlockPlugin to block
after the field caps are received, which prevents the test to block on the
transport thread. Blocking on transport thread was preventing the cancellation
on disconnect from cancelling the task until after the block on the transport
thread was released.

Since I cannot reporduce this issue, I will leave the trace logging for now
and will remove it after observing this test for a while in CI.

Relates to #58270

Makes RestEqlCancellationIT more deterministic by adding an assertBusy for the
cancellation propagation. It also refactors the SearchBlockPlugin to block
after the field caps are received, which prevents the test to block on the
transport thread. Blocking on transport thread was preventing the cancellation
on disconnect from cancelling the task until after the block on the transport
thread was released.

Since I cannot reporduce this issue, I will leave the trace logging for now
and will remove it after observing this test for a while in CI.

Relates to elastic#58270
@imotov imotov added >test-failure Triaged test failures from CI :Analytics/EQL EQL querying labels Jun 24, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (:Query Languages/EQL)

@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Jun 24, 2020
@imotov imotov requested a review from jimczi June 24, 2020 14:08
Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

LGTM

@imotov imotov merged commit fa8669e into elastic:master Jun 25, 2020
imotov added a commit to imotov/elasticsearch that referenced this pull request Jun 25, 2020
Makes RestEqlCancellationIT more deterministic by adding an assertBusy for the
cancellation propagation. It also refactors the SearchBlockPlugin to block
after the field caps are received, which prevents the test to block on the
transport thread. Blocking on transport thread was preventing the cancellation
on disconnect from cancelling the task until after the block on the transport
thread was released.

Since I cannot reporduce this issue, I will leave the trace logging for now
and will remove it after observing this test for a while in CI.

Relates to elastic#58270
imotov added a commit to imotov/elasticsearch that referenced this pull request Jun 29, 2020
The test didn't fail since the fix in elastic#58493. So, it's time to remove debug
logging and close the issue.

Closes elastic#58270
imotov added a commit that referenced this pull request Jun 29, 2020
The test didn't fail since the fix in #58493. So, it's time to remove debug
logging and close the issue.

Closes #58270
imotov added a commit to imotov/elasticsearch that referenced this pull request Jun 29, 2020
The test didn't fail since the fix in elastic#58493. So, it's time to remove debug
logging and close the issue.

Closes elastic#58270
imotov added a commit that referenced this pull request Jun 29, 2020
The test didn't fail since the fix in #58493. So, it's time to remove debug
logging and close the issue.

Closes #58270
@imotov imotov deleted the issue-58270-fix-eql-rest-cancellation-test branch July 17, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/EQL EQL querying Team:QL (Deprecated) Meta label for query languages team >test-failure Triaged test failures from CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants