Skip to content

[8.x] ESQL: Fix function registry concurrency issues on constructor (#123492) - #123583

Merged
elasticsearchmachine merged 2 commits into
elastic:8.xfrom
ivancea:backport/8.x/pr-123492
Feb 27, 2025
Merged

elasticsearchmachine merged 2 commits into
elastic:8.xfrom
ivancea:backport/8.x/pr-123492

Conversation

@ivancea

@ivancea ivancea commented Feb 27, 2025

Copy link
Copy Markdown
Contributor

Backports the following commits to 8.x:

…c#123492)

Fixes elastic#123430

There were 2 problems here:
- We were filling a static field (used to auto-cast string literals) within a constructor, which is also called in multiple places
- The field was only filled with non-snapshot functions, so snapshot function auto-casting wasn't possible

Fixed both bugs by making the field non-static instead, and a fix to use the snapshot registry (if available) in the string casting rule.
@ivancea ivancea added :Analytics/ES|QL AKA ESQL >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) test-release Trigger CI checks against release build labels Feb 27, 2025
@elasticsearchmachine
elasticsearchmachine merged commit c058417 into elastic:8.x Feb 27, 2025
@ivancea
ivancea deleted the backport/8.x/pr-123492 branch February 27, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) test-release Trigger CI checks against release build v8.19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants