You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Profiling] Fix NullPointerExceptions by accepting dotted field names (#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]>
Copy file name to clipboardExpand all lines: x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/action/TransportGetStackTracesAction.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -790,7 +790,12 @@ public void onExecutableDetailsResponse(MultiGetResponse multiGetItemResponses)
790
790
if (executable.getResponse().isExists()) {
791
791
// Duplicates are expected as we query multiple indices - do a quick pre-check before we deserialize a response
792
792
if (executables.containsKey(executable.getId()) == false) {
0 commit comments