Skip to content

Commit

Permalink
fix(exec): fix RemoteExec transformer deadlock (#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextheimer committed May 15, 2024
1 parent 522ab33 commit b0b35f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ trait GrpcRemoteExec extends RemoteExec {
.timed
.map { case (elapsed, qresp) =>
val timeRemaining = Duration(requestTimeoutMs, TimeUnit.MILLISECONDS) - elapsed
applyTransformers(qresp, querySession, source, timeRemaining)
applyTransformers(qresp, querySession, source,
timeRemaining)(monix.execution.Scheduler.Implicits.global)
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion query/src/main/scala/filodb/query/exec/RemoteExec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ trait RemoteExec extends LeafExecPlan with StrictLogging {
.timed
.map{ case (elapsed, qresp) =>
val timeRemaining = Duration(requestTimeoutMs, TimeUnit.MILLISECONDS) - elapsed
applyTransformers(qresp, querySession, source, timeRemaining)
applyTransformers(qresp, querySession, source,
timeRemaining)(monix.execution.Scheduler.Implicits.global)
}
}
}
Expand Down

0 comments on commit b0b35f1

Please sign in to comment.