gaborgsomogyi commented on a change in pull request #23693: 
[SPARK-26768][CORE]Remove useless code in BlockManager
URL: https://github.com/apache/spark/pull/23693#discussion_r252297970
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/storage/BlockManager.scala
 ##########
 @@ -632,18 +632,7 @@ private[spark] class BlockManager(
    */
   def getLocalBytes(blockId: BlockId): Option[BlockData] = {
     logDebug(s"Getting local block $blockId as bytes")
-    // As an optimization for map output fetches, if the block is for a 
shuffle, return it
-    // without acquiring a lock; the disk store never deletes (recent) items 
so this should work
-    if (blockId.isShuffle) {
 
 Review comment:
   Just curious why not delete `isShuffle`? Presume from your PR it can never 
be true.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to