Skip to content

Conversation

@pmpailis
Copy link
Contributor

As mentioned in the linked issue, the following exception is only reproducible under heavy load, so I had to use stress-ng locally to get some errors. It seems that there is a race condition in the tests, when we try to read the mappings before they actually have been updated by the ingested documents.

Updated tests testBBQDynamicMappingWhenFirstIngestingDoc and testDenseVectorDynamicMapping to use the assertBusy pattern, similarly to other tests in the class.

Closes #129928

@pmpailis pmpailis added >test Issues or PRs that are addressing/adding tests :Search Foundations/Mapping Index mappings, including merging and defining field types :Search Relevance/Vectors Vector search labels Jun 24, 2025
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.1.0 labels Jun 24, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

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

I think this is good. After index, the mapping is updated asynchronously before the doc is indexed.

Maybe its better to have a "refresh=now" in the index request?

Though, we have ran into similar things in yaml tests. So, the assert busy is likely warranted.

@pmpailis pmpailis enabled auto-merge (squash) June 24, 2025 16:13
@pmpailis pmpailis merged commit 07f65e9 into elastic:main Jun 24, 2025
32 checks passed
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Foundations/Mapping Index mappings, including merging and defining field types :Search Relevance/Vectors Vector search Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] DynamicMappingIT testDenseVectorDynamicMapping failing

3 participants