Skip to content

Making sure that watcher history indices are green before querying them#95642

Merged
elasticsearchmachine merged 1 commit intoelastic:mainfrom
masseyke:ExecutionVarsIntegrationTests-fix
Apr 27, 2023
Merged

Making sure that watcher history indices are green before querying them#95642
elasticsearchmachine merged 1 commit intoelastic:mainfrom
masseyke:ExecutionVarsIntegrationTests-fix

Conversation

@masseyke
Copy link
Copy Markdown
Member

@masseyke masseyke commented Apr 27, 2023

My theory is that the failure at #95077 was caused by #94133. It looks like the test is failing because the watcher history index exists, but not all shards have been allocated. Previously the bulk processor used to load watcher history was blocking. So if the watch completed you were guaranteed that the watcher history shards had been allocated because it didn't return until the watcher history documents had been written. The new bulk processor works asynchrnously, and doesn't block watcher.
This change waits until the watcher history indices are green (all shards allocated) before querying them.

Closes #95077

@masseyke masseyke added >test Issues or PRs that are addressing/adding tests :Distributed/Watcher v8.9.0 labels Apr 27, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Apr 27, 2023
@masseyke masseyke requested a review from dakrone April 27, 2023 21:51
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM

@masseyke
Copy link
Copy Markdown
Member Author

Adding a little more evidence to the fact that #94133 caused this --
I just looked back at failures of this test dating back to January 27. The first failure was Feb 27 on the PR branch for #94133. The next failure was on March 4, 2 days after merging #94133. And then there was a failure every few days until this test was muted.

@masseyke masseyke added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 27, 2023
@elasticsearchmachine elasticsearchmachine merged commit 8fa9550 into elastic:main Apr 27, 2023
@masseyke masseyke deleted the ExecutionVarsIntegrationTests-fix branch April 27, 2023 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Watcher Team:Data Management (obsolete) DO NOT USE. This team no longer exists. >test Issues or PRs that are addressing/adding tests v8.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] ExecutionVarsIntegrationTests testVars failing

3 participants