EnricoMi commented on code in PR #51199:
URL: https://github.com/apache/spark/pull/51199#discussion_r2459473302
##########
core/src/main/scala/org/apache/spark/storage/FallbackStorage.scala:
##########
@@ -95,15 +96,21 @@ private[storage] class FallbackStorage(conf: SparkConf)
extends Logging {
}
}
-private[storage] class NoopRpcEndpointRef(conf: SparkConf) extends
RpcEndpointRef(conf) {
+private[storage] class FallbackStorageRpcEndpointRef(conf: SparkConf,
hadoopConf: Configuration)
+ extends RpcEndpointRef(conf) {
// scalastyle:off executioncontextglobal
import scala.concurrent.ExecutionContext.Implicits.global
// scalastyle:on executioncontextglobal
override def address: RpcAddress = null
override def name: String = "fallback"
override def send(message: Any): Unit = {}
override def ask[T: ClassTag](message: Any, timeout: RpcTimeout): Future[T]
= {
- Future{true.asInstanceOf[T]}
+ message match {
+ case RemoveShuffle(shuffleId) =>
+ FallbackStorage.cleanUp(conf, hadoopConf, Some(shuffleId))
+ Future{true.asInstanceOf[T]}
+ case _ => Future{true.asInstanceOf[T]}
+ }
Review Comment:
simplified as suggested
--
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]