Skip to content

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Oct 23, 2024

Every once in a while, DatabaseNodeService::checkDatabases gets called at just the wrong time and deletes the database we are using in these tests. This PR adds an assertBusy to retry when this happens.
Closes #113752
Closes #113821

@masseyke masseyke added >test Issues or PRs that are addressing/adding tests :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP auto-backport Automatically create backport pull requests when merged v8.16.0 v9.0.0 v8.17.0 labels Oct 23, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Oct 23, 2024
@masseyke masseyke requested a review from joegallo October 23, 2024 20:15
@joegallo
Copy link
Contributor

What do you think about this version of things, @masseyke? It seems to pass reliably on my machine, but doesn't require a change to the source (it only fusses with the test code).

@masseyke
Copy link
Member Author

What do you think about this version of things, @masseyke? It seems to pass reliably on my machine, but doesn't require a change to the source (it only fusses with the test code).

It makes me slightly less uncomfortable than the previous version. So I saw we go for it. I've run it a bunch of times without any problems so far.

Copy link
Contributor

@joegallo joegallo left a comment

Choose a reason for hiding this comment

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

@masseyke masseyke merged commit 8357887 into elastic:main Oct 25, 2024
16 checks passed
@masseyke masseyke deleted the fix-DatabaseNodeServiceIT-race-condition branch October 25, 2024 20:34
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.16 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 115463

masseyke added a commit to masseyke/elasticsearch that referenced this pull request Oct 25, 2024
…tabase race condition (elastic#115463)

Co-authored-by: Joe Gallo <joegallo@gmail.com>
masseyke added a commit to masseyke/elasticsearch that referenced this pull request Oct 25, 2024
…tabase race condition (elastic#115463)

Co-authored-by: Joe Gallo <joegallo@gmail.com>
elasticsearchmachine pushed a commit that referenced this pull request Oct 25, 2024
…tabase race condition (#115463) (#115707)

Co-authored-by: Joe Gallo <joegallo@gmail.com>
elasticsearchmachine pushed a commit that referenced this pull request Oct 25, 2024
…tabase race condition (#115463) (#115708)

Co-authored-by: Joe Gallo <joegallo@gmail.com>
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
…tabase race condition (elastic#115463)

Co-authored-by: Joe Gallo <joegallo@gmail.com>
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 :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.16.0 v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] DatabaseNodeServiceIT testNonGzippedDatabase failing [CI] DatabaseNodeServiceIT testGzippedDatabase failing

3 participants