Ngone51 commented on code in PR #54224:
URL: https://github.com/apache/spark/pull/54224#discussion_r2791076859
##########
core/src/main/scala/org/apache/spark/storage/BlockManagerMaster.scala:
##########
@@ -193,40 +193,48 @@ class BlockManagerMaster(
/** Remove all blocks belonging to the given RDD. */
def removeRdd(rddId: Int, blocking: Boolean): Unit = {
- val future = driverEndpoint.askSync[Future[Seq[Int]]](RemoveRdd(rddId))
+ val msg = RemoveRdd(rddId)
+ val future = if (blocking) {
+ driverEndpoint.askSync[Future[Seq[Int]]](msg, waitBlockRemovalTimeout)
+ } else {
+ driverEndpoint.ask[Future[Seq[Int]]](msg)
+ }
Review Comment:
I think `blocking` controls whether we should wait for the returned `Future`
to complete rather than whether wait for the RPC response (the PRC reponse is
expected to be fast here, though I know there could also be abnormal cases that
timed-out in the end). So I think the original behaviour of `blocking` should
be correct, unless you want to add new blocking flag for the RPC response.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]