Skip to content

Commit a716d6d

Browse files
mc-nvindrajit96
andauthored
Intermittent L0_decoupled_grpc_error crash fixed. (#7552) (#7554)
Co-authored-by: Indrajit Bhosale <iamindrajitb@gmail.com>
1 parent e5718ac commit a716d6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/grpc/infer_handler.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,11 @@ class InferHandlerState {
666666

667667
bool IsCancelled()
668668
{
669-
return received_notification_ ? ctx_->IsCancelled() : false;
669+
std::lock_guard<std::recursive_mutex> lock(mu_);
670+
return received_notification_
671+
? (ctx_->IsCancelled() ||
672+
gRPCErrorTracker_->CheckAndUpdateGRPCError())
673+
: false;
670674
}
671675

672676
// Increments the ongoing request counter

0 commit comments

Comments
 (0)