Skip to content

Conversation

lukewhiting
Copy link
Contributor

@lukewhiting lukewhiting commented Apr 2, 2025

Looks like there's a race condition here where we check if the newly created reindex is complete before the task framework has had a chance to work out that it's a noop.

I wrapped the assertions in an assertBusy block and that seems to have resolved the intermittent fails.

Based on 1000 local iterations with random seeds:
Fail rate before fix: 3-5%
Fail rate after fix: 0%

Fixes #125727

@lukewhiting lukewhiting added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged v6.8.19 v9.0.0 v8.18.1 v8.19.0 v9.1.0 labels Apr 2, 2025
@lukewhiting lukewhiting requested a review from masseyke April 2, 2025 13:03
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Apr 2, 2025
@lukewhiting lukewhiting added >test-failure Triaged test failures from CI and removed >test Issues or PRs that are addressing/adding tests needs:triage Requires assignment of a team area label labels Apr 2, 2025
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label needs:risk Requires assignment of a risk label (low, medium, blocker) labels Apr 2, 2025
@lukewhiting lukewhiting added >test Issues or PRs that are addressing/adding tests and removed >test-failure Triaged test failures from CI needs:triage Requires assignment of a team area label needs:risk Requires assignment of a risk label (low, medium, blocker) labels Apr 2, 2025
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Apr 2, 2025
@lukewhiting lukewhiting added the :Data Management/Data streams Data streams and their lifecycles label Apr 2, 2025
@elasticsearchmachine elasticsearchmachine added Team:Data Management Meta label for data/management team and removed needs:triage Requires assignment of a team area label labels Apr 2, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@lukewhiting lukewhiting force-pushed the es-125727-testfail-testAlreadyUpToDateDataStream branch from 0d904a6 to 85d1a1e Compare April 2, 2025 13:09
Copy link
Member

@masseyke masseyke left a comment

Choose a reason for hiding this comment

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

LGTM

@lukewhiting lukewhiting merged commit d816845 into elastic:main Apr 2, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

elasticsearchmachine commented Apr 2, 2025

💔 Backport failed

Status Branch Result
9.0 Commit could not be cherrypicked due to conflicts
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 126123

@lukewhiting
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x
9.0
8.18

Questions ?

Please refer to the Backport tool documentation

lukewhiting added a commit to lukewhiting/elasticsearch that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (elastic#126123)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
lukewhiting added a commit to lukewhiting/elasticsearch that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (elastic#126123)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
lukewhiting added a commit to lukewhiting/elasticsearch that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (elastic#126123)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
lukewhiting added a commit to lukewhiting/elasticsearch that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (elastic#126123)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
lukewhiting added a commit to lukewhiting/elasticsearch that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (elastic#126123)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
@lukewhiting
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x
9.0
8.18

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (#126123) (#126135)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (#126123) (#126136)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Apr 2, 2025
…UpToDateDataStream failing (#126123) (#126134)

(cherry picked from commit d816845)

# Conflicts:
#	muted-tests.yml
andreidan pushed a commit to andreidan/elasticsearch that referenced this pull request Apr 9, 2025
@lukewhiting lukewhiting deleted the es-125727-testfail-testAlreadyUpToDateDataStream branch July 28, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending :Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.18.1 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] ReindexDataStreamTransportActionIT testAlreadyUpToDateDataStream failing

3 participants