AHeise commented on code in PR #100: URL: https://github.com/apache/flink-connector-kafka/pull/100#discussion_r1760607528
########## flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/source/KafkaSourceITCase.java: ########## @@ -369,6 +370,38 @@ public void testConsumingTopicWithEmptyPartitions() throws Throwable { WatermarkStrategy.noWatermarks(), "testConsumingTopicWithEmptyPartitions")); } + + @Test + @Timeout(value = 10) + public void testConsumingTransactionalMessage() throws Throwable { + String transactionalTopic = "transactionalTopic-" + UUID.randomUUID(); + KafkaSourceTestEnv.createTestTopic( + transactionalTopic, KafkaSourceTestEnv.NUM_PARTITIONS, 1); + List<ProducerRecord<String, Integer>> records = + KafkaSourceTestEnv.getRecordsForTopic(transactionalTopic); + // Prepare records for executeAndVerify method + records.removeIf(record -> record.partition() > record.value()); Review Comment: Could you change the comment to reflect how the data looks afterwards? I'm assuming this will preserve one record per partition? I'm also curios why we need a specific data layout for this test to work? Or rephrased: what would happen if we retain all records originally generated? Wouldn't the test still assert similar things? -- 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-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org