Skip to content

Commit a5ef11b

Browse files
committed
Explain seemingly-unreachable error handling code.
1 parent 68b9e83 commit a5ef11b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/storage/BlockManager.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,11 @@ private[spark] class BlockManager(
517517
}
518518
}
519519
} else {
520+
// This branch represents a case where the BlockInfoManager contained an entry for
521+
// the block but the block could not be found in any of the block stores. This case
522+
// should never occur, but for completeness's sake we address it here.
523+
logError(
524+
s"Block $blockId is supposedly stored locally but was not found in any block store")
520525
releaseLock(blockId)
521526
None
522527
}

0 commit comments

Comments
 (0)