Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Oct 31, 2025

Backports the following commits to 9.2:

When rescheduling a task, the task may begin running before the test is
able to take more actions. This means reseting the barriers in the auto
reschedule test may occur after the second run of the task has begun,
which results in a broken barrier.

This commit fixes the race condition by moving the reset of each barrier
to occur after the await for the relevant barrier. This ensures that
each barrier is ready to be awaited on again by the end of the run. Due
to there being two barriers, the second barrier may be reset after the
test codes second barrier1.await, but that is ok.

closes elastic#131150
@rjernst rjernst added :Core/Infra/Core Core issues without another label >test Issues or PRs that are addressing/adding tests auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Oct 31, 2025
@elasticsearchmachine elasticsearchmachine merged commit 8fb3676 into elastic:9.2 Oct 31, 2025
34 checks passed
@rjernst rjernst deleted the backport/9.2/pr-137405 branch October 31, 2025 14:19
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!) backport :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v9.2.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants