Skip to content

Commit

Permalink
Standard parsing but HashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmitterdorfer committed Jan 23, 2024
1 parent bbc03b4 commit 6df3d21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ public void onStackTraceResponse(MultiGetResponse multiGetItemResponses) {
String id = trace.getId();
// Duplicates are expected as we query multiple indices - do a quick pre-check before we deserialize a response
if (stackTracePerId.containsKey(id) == false) {
// StackTrace stacktrace = StackTrace.fromSource(trace.getResponse().getSource());
StackTrace stacktrace = StackTrace.fromBytes(trace.getResponse().getSourceAsBytesRef());
StackTrace stacktrace = StackTrace.fromSource(trace.getResponse().getSource());
//StackTrace stacktrace = StackTrace.fromBytes(trace.getResponse().getSourceAsBytesRef());
// Guard against concurrent access and ensure we only handle each item once
if (stackTracePerId.putIfAbsent(id, stacktrace) == null) {
totalFrames.addAndGet(stacktrace.frameIds.size());
Expand Down

0 comments on commit 6df3d21

Please sign in to comment.