[ 
https://issues.apache.org/jira/browse/BEAM-11172?focusedWorklogId=510842&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-510842
 ]

ASF GitHub Bot logged work on BEAM-11172:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Nov/20 15:18
            Start Date: 12/Nov/20 15:18
    Worklog Time Spent: 10m 
      Work Description: aromanenko-dev commented on a change in pull request 
#13282:
URL: https://github.com/apache/beam/pull/13282#discussion_r522185225



##########
File path: 
sdks/java/io/kafka/src/test/java/org/apache/beam/sdk/io/kafka/KafkaIOIT.java
##########
@@ -116,15 +117,54 @@ public static void setup() throws IOException {
   }
 
   @Test
-  public void testKafkaIOReadsAndWritesCorrectly() throws IOException {
+  public void testKafkaIOReadsAndWritesCorrectlyInStreaming() throws 
IOException {
+    // Use batch pipeline to write records.
+    writePipeline
+        .apply("Generate records", Read.from(new 
SyntheticBoundedSource(sourceOptions)))
+        .apply("Measure write time", ParDo.of(new TimeMonitor<>(NAMESPACE, 
WRITE_TIME_METRIC_NAME)))
+        .apply("Write to Kafka", writeToKafka());
+
+    // Use streaming pipeline to read Kafka records.
+    readPipeline.getOptions().as(Options.class).setStreaming(true);
+    readPipeline
+        .apply("Read from Runner V2 Kafka", readFromKafka())

Review comment:
       nit: Please, remove "Runner V2"




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 510842)
    Time Spent: 8h 20m  (was: 8h 10m)

> Set up Java Kafka performance test with runner v2
> -------------------------------------------------
>
>                 Key: BEAM-11172
>                 URL: https://issues.apache.org/jira/browse/BEAM-11172
>             Project: Beam
>          Issue Type: Test
>          Components: io-java-kafka, testing
>            Reporter: Boyuan Zhang
>            Assignee: Boyuan Zhang
>            Priority: P2
>          Time Spent: 8h 20m
>  Remaining Estimate: 0h
>
> Currently we have KafkaIO performance test with dataflow batch java 
> production worker. We want to test it with runner v2 + SDF implementation in 
> streaming as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to