Skip to content

Commit

Permalink
Fix test failures due to Span not being properly closed
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyansh Ray <[email protected]>
  • Loading branch information
rayshrey committed Oct 3, 2023
1 parent 530c15d commit 43f504a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ protected void handlePrimaryRequest(final ConcreteShardRequest<Request> request,
new AsyncPrimaryAction(request, TraceableActionListener.create(listener, span, getTracer()), (ReplicationTask) task).run();
} catch (RuntimeException e) {
listener.onFailure(e);
span.endSpan();
}
}

Expand Down Expand Up @@ -708,6 +709,7 @@ protected void handleReplicaRequest(
.run();
} catch (RuntimeException e) {
listener.onFailure(e);
span.endSpan();
}
}

Expand Down

0 comments on commit 43f504a

Please sign in to comment.