Github user xuanyuanking commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22024#discussion_r213015113
  
    --- Diff: 
core/src/main/scala/org/apache/spark/network/BlockTransferService.scala ---
    @@ -101,15 +101,7 @@ abstract class BlockTransferService extends 
ShuffleClient with Closeable with Lo
               result.failure(exception)
             }
             override def onBlockFetchSuccess(blockId: String, data: 
ManagedBuffer): Unit = {
    -          data match {
    -            case f: FileSegmentManagedBuffer =>
    -              result.success(f)
    -            case _ =>
    -              val ret = ByteBuffer.allocate(data.size.toInt)
    --- End diff --
    
    The copy behavior was introduced by : 
https://github.com/apache/spark/pull/2330/commits/69f5d0a2434396abbbd98886e047bc08a9e65565.
 How can you make sure this can be replaced by increasing the reference count?



---

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

Reply via email to