flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NicoK <...@git.apache.org>
Subject [GitHub] flink pull request #4552: [FLINK-7456][network] Implement Netty sender incom...
Date Mon, 15 Jan 2018 17:34:40 GMT
Github user NicoK commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4552#discussion_r161559642
  
    --- Diff: flink-runtime/src/test/java/org/apache/flink/runtime/io/network/netty/PartitionRequestQueueTest.java
---
    @@ -71,4 +77,95 @@ public void testProducerFailedException() throws Exception {
     		NettyMessage.ErrorResponse err = (NettyMessage.ErrorResponse) msg;
     		assertTrue(err.cause instanceof CancelTaskException);
     	}
    +
    +	/**
    +	 * Tests {@link PartitionRequestQueue#enqueueAvailableReader(SequenceNumberingViewReader)},
    +	 * verifying the reader would be enqueued in the pipeline if the next sending buffer
is event, even
    +	 * though it has no available credits.
    +	 */
    +	@Test
    +	public void testEnqueueReaderByNotifyingEventBuffer() throws Exception {
    +		// setup
    +		final ResultSubpartitionView view = mock(ResultSubpartitionView.class);
    --- End diff --
    
    let's remove that mock ...


---

Mime
View raw message