Skip to content

Conversation

@rockdaboot
Copy link
Contributor

  • [Profiling] Fix NullPointerExceptions by accepting dotted field names

Profiling uses synthetic source and thus expects nested field names in query responses. With 8.17+, synthetic source is available only to Enterprise (or higher) subscriptions, so that smaller subscriptions have dotted field names in query responses. The profiling plugin relies on nested field names and runs into NullPointerExceptions if these are not found.

This PR fixes the NullPointerExceptions that could happen with dotted field names.

…elastic#124506)

* [Profiling] Fix NullPointerExceptions by accepting dotted field names

Profiling uses synthetic source and thus expects nested field names in query responses.
With 8.17+, synthetic source is available only to Enterprise (or higher) subscriptions,
so that smaller subscriptions have dotted field names in query responses.
The profiling plugin relies on nested field names and runs into NullPointerExceptions
if these are not found.

This PR fixes the NullPointerExceptions that could happen with dotted field names.

Signed-off-by: Tim Rühsen <[email protected]>

* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <[email protected]>
@rockdaboot rockdaboot added >bug backport :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure v9.0.1 labels Mar 12, 2025
@rockdaboot rockdaboot self-assigned this Mar 12, 2025
@elasticsearchmachine elasticsearchmachine added the external-contributor Pull request authored by a developer outside the Elasticsearch team label Mar 12, 2025
@rockdaboot rockdaboot merged commit 8c96f61 into elastic:9.0 Mar 12, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug external-contributor Pull request authored by a developer outside the Elasticsearch team :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure v9.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants