Skip to content

Conversation

@masseyke
Copy link
Member

In Test ingest simulate with index template substitutions we created an index template with one name, and then provided an index template substitution with another name that matches the same pattern with the same priority (no priority). The behavior when you do this is undefined, and just depends on the order that a hash map returns them. In the old test framework, the same things were always in that hash map, so the same index template came out first, and it just happened to be the one that made the test work. @mark-vieira is changing out the test framework, and with that change the other index template always happens to come out first, so the test always fails. This change just uses a single index template name so that we avoid this undefined behavior.

@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 v9.0.0 v8.18.1 v8.19.0 v9.1.0 labels Mar 25, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Mar 25, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@mattc58 mattc58 left a comment

Choose a reason for hiding this comment

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

+1 LGTM

@masseyke masseyke enabled auto-merge (squash) March 25, 2025 22:14
@mark-vieira
Copy link
Contributor

Thanks for tracking this down @masseyke!

@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0
8.18
8.x

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.18.1 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants