Skip to content

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

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

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

ivancea
Copy link
Contributor

@ivancea ivancea commented Feb 27, 2025

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
16 checks passed
@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