Skip to content

Commit c1e22b1

Browse files
committed
clean up
1 parent 3c43ce0 commit c1e22b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/raydp-main/src/main/scala/org/apache/spark/executor/RayDPExecutor.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class RayDPExecutor(
376376
// The block may have been (re)cached on a different executor after recache.
377377
val ownerOpt = getCurrentBlockOwnerExecutorId(blockId)
378378
ownerOpt match {
379-
case Some(ownerSparkExecutorId) if ownerSparkExecutorId != executorId =>
379+
case Some(ownerSparkExecutorId) =>
380380
val ownerRayExecutorId = resolveRayActorExecutorId(ownerSparkExecutorId)
381381
logWarning(
382382
s"Cached block $blockId not found on executor $executorId after recache. " +
@@ -393,7 +393,7 @@ class RayDPExecutor(
393393
e.getRDDPartitionNoForward(rddId, partitionId, schemaStr, driverAgentUrl))
394394
.remote()
395395
.get()
396-
case Some(_) | None =>
396+
case None =>
397397
throw new RayDPException("Still cannot get the block after recache!")
398398
}
399399
case None =>

0 commit comments

Comments
 (0)