Skip to content

Commit

Permalink
Return faster with shuffle blocks since we don't need the rest of the…
Browse files Browse the repository at this point in the history
… logic in update block :)
  • Loading branch information
holdenk committed Jun 2, 2020
1 parent 7f93df6 commit 7e32341
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,14 @@ class BlockManagerMasterEndpoint(
case ShuffleIndexBlockId(shuffleId, mapId, _) =>
// Don't update the map output on just the index block
logDebug("Received shuffle index block update for ${shuffleId} ${mapId}")
return true
case ShuffleDataBlockId(shuffleId: Int, mapId: Long, reduceId: Int) =>
logInfo("Received shuffle data block update for ${shuffleId} ${mapId}, performing update")
mapOutputTracker.updateMapOutput(shuffleId, mapId, blockManagerId)
return true
case _ =>
logDebug(s"Unexpected shuffle block type ${blockId}")
return false
}
}

Expand Down

0 comments on commit 7e32341

Please sign in to comment.