Github user viper-kun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5178#discussion_r27193887
  
    --- Diff: 
core/src/main/scala/org/apache/spark/storage/ShuffleBlockFetcherIterator.scala 
---
    @@ -181,68 +181,100 @@ final class ShuffleBlockFetcherIterator(
         // at most maxBytesInFlight in order to limit the amount of data in 
flight.
         val remoteRequests = new ArrayBuffer[FetchRequest]
     
    +    val shuffleMgrName = SparkEnv.get.conf.get("spark.shuffle.manager", 
"sort")
    +
         // Tracks total number of blocks (including zero sized blocks)
         var totalBlocks = 0
    -    for ((address, blockInfos) <- blocksByAddress) {
    -      totalBlocks += blockInfos.size
    -      if (address.executorId == blockManager.blockManagerId.executorId) {
    -        // Filter out zero-sized blocks
    -        localBlocks ++= blockInfos.filter(_._2 != 0).map(_._1)
    -        numBlocksToFetch += localBlocks.size
    -      } else {
    -        val iterator = blockInfos.iterator
    -        var curRequestSize = 0L
    -        var curBlocks = new ArrayBuffer[(BlockId, Long)]
    -        while (iterator.hasNext) {
    -          val (blockId, size) = iterator.next()
    -          // Skip empty blocks
    -          if (size > 0) {
    -            curBlocks += ((blockId, size))
    -            remoteBlocks += blockId
    -            numBlocksToFetch += 1
    -            curRequestSize += size
    -          } else if (size < 0) {
    -            throw new BlockException(blockId, "Negative block size " + 
size)
    -          }
    -          if (curRequestSize >= targetRequestSize) {
    -            // Add this FetchRequest
    -            remoteRequests += new FetchRequest(address, curBlocks)
    -            curBlocks = new ArrayBuffer[(BlockId, Long)]
    -            logDebug(s"Creating fetch request of $curRequestSize at 
$address")
    -            curRequestSize = 0
    -          }
    +    if(shuffleMgrName == "hash") {
    --- End diff --
    
    what are you means?how to specify the full path?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to