You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/01/20 10:47:40 UTC

[GitHub] [flink] matriv commented on a change in pull request #18420: [FLINK-25199][network] Make sure StreamEdges are unique

matriv commented on a change in pull request #18420:
URL: https://github.com/apache/flink/pull/18420#discussion_r788640935



##########
File path: flink-tests/src/test/java/org/apache/flink/test/streaming/runtime/TimestampITCase.java
##########
@@ -159,6 +160,28 @@ public void testWatermarkPropagation() throws Exception {
         }
     }
 
+    @Test
+    public void testSelfUnionWatermark() throws Exception {
+        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
+        env.setParallelism(1);
+        DataStream<Integer> dataStream1 = env.fromElements(1, 2, 3).setParallelism(1);
+
+        dataStream1
+                .union(dataStream1)
+                .addSink(
+                        new DiscardingSink<Integer>() {
+                            @Override
+                            public void writeWatermark(
+                                    org.apache.flink.api.common.eventtime.Watermark watermark)
+                                    throws Exception {
+                                System.out.println(watermark);
+                            }
+                        });
+        // or  use .addSink(new DiscardingSink<>()); and debug to check that the writeWatermark() on

Review comment:
       left over? or was left for future reference?




-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org