Skip to content
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

[Profiling] Fix NullPointerExceptions by accepting dotted field names #124506

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

rockdaboot
Copy link
Contributor

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.

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 <tim.ruhsen@elastic.co>
@rockdaboot rockdaboot self-assigned this Mar 10, 2025
@rockdaboot rockdaboot requested a review from christos68k March 10, 2025 16:04
@elasticsearchmachine elasticsearchmachine added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team external-contributor Pull request authored by a developer outside the Elasticsearch team labels Mar 10, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@rockdaboot rockdaboot merged commit c0efcd0 into elastic:main Mar 12, 2025
17 checks passed
rockdaboot added a commit to rockdaboot/elasticsearch that referenced this pull request Mar 12, 2025
…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 <tim.ruhsen@elastic.co>

* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
rockdaboot added a commit to rockdaboot/elasticsearch that referenced this pull request Mar 12, 2025
…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 <tim.ruhsen@elastic.co>

* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
rockdaboot added a commit to rockdaboot/elasticsearch that referenced this pull request Mar 12, 2025
…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 <tim.ruhsen@elastic.co>

* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
rockdaboot added a commit that referenced this pull request Mar 12, 2025
…#124506) (#124621)

* [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.



* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
rockdaboot added a commit that referenced this pull request Mar 12, 2025
…#124506) (#124622)

* [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.



* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
rockdaboot added a commit that referenced this pull request Mar 12, 2025
…#124506) (#124623)

* [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.



* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
rockdaboot added a commit that referenced this pull request Mar 12, 2025
…#124506) (#124624)

* [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.



* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
albertzaharovits pushed a commit to albertzaharovits/elasticsearch that referenced this pull request Mar 13, 2025
…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 <tim.ruhsen@elastic.co>

* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Mar 13, 2025
…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 <tim.ruhsen@elastic.co>

* Evaluate source only once (cleanup)

---------

Signed-off-by: Tim Rühsen <tim.ruhsen@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug external-contributor Pull request authored by a developer outside the Elasticsearch team Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team :UniversalProfiling/Application Elastic Universal Profiling REST APIs and infrastructure v8.17.4 v8.18.0 v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants