[
https://issues.apache.org/jira/browse/BEAM-14429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534130#comment-17534130
]
Yichi Zhang edited comment on BEAM-14429 at 5/10/22 4:33 AM:
-------------------------------------------------------------
I mainly just run one of the load test and check the the counters, the test
normally run ~5 minutes
./gradlew -PloadTest.mainClass=org.apache.beam.sdk.loadtests.ParDoLoadTest
-Prunner=:runners:google-cloud-dataflow-java
'-PloadTest.args=--project=apache-beam-testing --region=us-central1
--appName=load_tests_Java11_Dataflow_V2_streaming_ParDo_1 --tempLocation=gs:/
/zyichi_beam_test/temp --influxMeasurement=java_streaming_pardo_1
--influxTags=\{"runnerVersion":"v2","jdk":"java11"} --publishToInfluxDB=false
--sourceOptions=\{"numRecords":20000000,"keySizeBytes":10,"valueSizeBytes":90}
--iterations=10 --numberOfCounters=1 --numberOfCounterOperations=0
--numWorkers=5 --autoscalingAlgorithm=NONE --streaming=true
--inputWindowDurationSec=1200 --runner=DataflowRunner' -Prunner.version=V2
-PcompileAndRunTestsWithJava11 -Pjava11Home=/usr/lib/jvm/java-11-openjdk-amd64
--continue --max-workers=12 -Dorg.gradle.jvmargs=-Xms2g
-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.vfs.watch=false
:sdks:java:testing:load-tests:run
was (Author: yichi):
I mainly just run one of the load test and check the the counters, the test
normally run ~5 minutes
`./gradlew -PloadTest.mainClass=org.apache.beam.sdk.loadtests.ParDoLoadTest
-Prunner=:runners:google-cloud-dataflow-java
'-PloadTest.args=--project=apache-beam-testing --region=us-central1
--appName=load_tests_Java11_Dataflow_V2_streaming_ParDo_1 --tempLocation=gs:/
/zyichi_beam_test/temp --influxMeasurement=java_streaming_pardo_1
--influxTags=\{"runnerVersion":"v2","jdk":"java11"} --publishToInfluxDB=false
--sourceOptions=\{"numRecords":20000000,"keySizeBytes":10,"valueSizeBytes":90}
--iterations=10 --numberOfCounters=1 --numberOfCounterOperations=0
--numWorkers=5 --autoscalingAlgorithm=NONE --streaming=true
--inputWindowDurationSec=1200 --runner=DataflowRunner' -Prunner.version=V2
-PcompileAndRunTestsWithJava11 -Pjava11Home=/usr/lib/jvm/java-11-openjdk-amd64
--continue --max-workers=12 -Dorg.gradle.jvmargs=-Xms2g
-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.vfs.watch=false
:sdks:java:testing:load-tests:run `
> SyntheticUnboundedSource(with SDF) produce duplicate records when split with
> DEFAULT_DESIRED_NUM_SPLITS
> -------------------------------------------------------------------------------------------------------
>
> Key: BEAM-14429
> URL: https://issues.apache.org/jira/browse/BEAM-14429
> Project: Beam
> Issue Type: Bug
> Components: io-common
> Reporter: Yichi Zhang
> Priority: P2
> Fix For: 2.39.0
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> With the default 20 split, the num records produced by
> Read.from(SyntheticUnboundedSource) is always larger than the numRecords
> specified. the more splits the more actual number records produced is off.
> And the Read step tends to take longer time with more splits.
> [https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/io/Read.java#L512]
> The issue is manifested with java LoadTests on dataflow runner v2.
> Initial suspicion is that duplicate source readers for the same restriction
> and checkpoint were created by multiple UnboundedSourceAsSDFWrapperFns.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)