Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private[connect] class ExecuteGrpcResponseSender[T <: Message](
timeoutNs = Math.min(progressTimeout * NANOS_PER_MILLIS, timeoutNs)
}
logTrace(s"Wait for response to become available with timeout=$timeoutNs ns.")
executionObserver.responseLock.wait(timeoutNs / NANOS_PER_MILLIS)
executionObserver.responseLock.wait(Math.max(1, timeoutNs / NANOS_PER_MILLIS))
enqueueProgressMessage(force = true)
logTrace(s"Reacquired executionObserver lock after waiting.")
sleepEnd = System.nanoTime()
Expand Down Expand Up @@ -384,7 +384,7 @@ private[connect] class ExecuteGrpcResponseSender[T <: Message](
val timeoutNs = Math.max(1, deadlineTimeNs - System.nanoTime())
var sleepStart = System.nanoTime()
logTrace(s"Wait for grpcCallObserver to become ready with timeout=$timeoutNs ns.")
grpcCallObserverReadySignal.wait(timeoutNs / NANOS_PER_MILLIS)
grpcCallObserverReadySignal.wait(Math.max(1, timeoutNs / NANOS_PER_MILLIS))
logTrace(s"Reacquired grpcCallObserverReadySignal lock after waiting.")
sleepEnd = System.nanoTime()
}
Expand Down