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

    https://github.com/apache/spark/pull/20461#discussion_r165246022
  
    --- Diff: 
common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/OneForOneBlockFetcher.java
 ---
    @@ -171,7 +171,9 @@ private void failRemainingBlocks(String[] 
failedBlockIds, Throwable e) {
     
         @Override
         public void onData(String streamId, ByteBuffer buf) throws IOException 
{
    -      channel.write(buf);
    +      while (buf.hasRemaining()) {
    +        channel.write(buf);
    --- End diff --
    
    
[FileSuite.writeBinaryData](https://github.com/apache/spark/blob/master/core/src/test/scala/org/apache/spark/FileSuite.scala#L247)
 this also should be fixed?


---

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

Reply via email to