You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/30 15:13:36 UTC
[GitHub] gaborgsomogyi commented on a change in pull request #23693:
[SPARK-26768][CORE]Remove useless code in BlockManager
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org