squito commented on a change in pull request #24499: [SPARK-25888][Core] Serve 
local disk persisted blocks by the external service after releasing executor by 
dynamic allocation
URL: https://github.com/apache/spark/pull/24499#discussion_r281835279
 
 

 ##########
 File path: 
common/network-common/src/test/java/org/apache/spark/network/server/OneForOneStreamManagerSuite.java
 ##########
 @@ -30,22 +31,47 @@
 public class OneForOneStreamManagerSuite {
 
   @Test
-  public void managedBuffersAreFeedWhenConnectionIsClosed() throws Exception {
+  public void testMissingChunk() {
     OneForOneStreamManager manager = new OneForOneStreamManager();
     List<ManagedBuffer> buffers = new ArrayList<>();
     TestManagedBuffer buffer1 = Mockito.spy(new TestManagedBuffer(10));
     TestManagedBuffer buffer2 = Mockito.spy(new TestManagedBuffer(20));
+    TestManagedBuffer buffer3 = Mockito.spy(new TestManagedBuffer(20));
+
     buffers.add(buffer1);
+    buffers.add(null);
     buffers.add(buffer2);
+    buffers.add(null);
 
 Review comment:
   I don't understand why you're adding these `null`s here and to other tests 
(is it related to this discussion earlier? 
https://github.com/apache/spark/pull/24499#discussion_r280565768 not sure I 
totally followed that, but I thought that was related to empty buffers, not 
null buffers).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to