[ https://issues.apache.org/jira/browse/FLINK-9087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16423441#comment-16423441 ]
ASF GitHub Bot commented on FLINK-9087: --------------------------------------- Github user zhangminglei commented on a diff in the pull request: https://github.com/apache/flink/pull/5802#discussion_r178707684 --- Diff: flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java --- @@ -309,8 +309,6 @@ public void testBroadcastEventBufferReferenceCounting() throws Exception { for (int i = 0; i < queues.length; i++) { assertTrue(parseBuffer(queues[i].remove(), i).isEvent()); } - - assertTrue(bufferConsumer.isRecycled()); } --- End diff -- How can you verify your ```bufferConsumer.isRecycled``` logic here if you drop this ? > Return value of broadcastEvent should be closed in > StreamTask#performCheckpoint > ------------------------------------------------------------------------------- > > Key: FLINK-9087 > URL: https://issues.apache.org/jira/browse/FLINK-9087 > Project: Flink > Issue Type: Bug > Reporter: Ted Yu > Assignee: mingleizhang > Priority: Minor > > {code} > for (StreamRecordWriter<SerializationDelegate<StreamRecord<OUT>>> > streamRecordWriter : streamRecordWriters) { > try { > streamRecordWriter.broadcastEvent(message); > {code} > The BufferConsumer returned by broadcastEvent() should be closed. -- This message was sent by Atlassian JIRA (v7.6.3#76005)