Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert not null for databases field #95497

Merged
merged 1 commit into from
Apr 24, 2023
Merged

Conversation

gmarouli
Copy link
Contributor

In this PR we try to fix #95496 by asserting that the field databases is not null. This will address the NPE which I believe is caused because it's not fully initialized yet. Changing the NPE to a assertion failure will trigger the assertBusy to retry until everything is properly initialized.

I cannot reproduce it locally, so I am not 100% that there is no other issue with the test, but I believe this is a step forward.

Closes: #95496

@gmarouli gmarouli 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.8.0 v8.7.2 labels Apr 24, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Apr 24, 2023
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@HiDAl HiDAl left a comment

Choose a reason for hiding this comment

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

lgtm

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.7

gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request Apr 24, 2023
@gmarouli gmarouli deleted the test-fix-95496 branch December 10, 2024 07: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 :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.7.2 v8.8.0
Projects
None yet
3 participants