Skip to content

Commit

Permalink
Change configurations for stress tests. Fix BigQueryIOST (#31439)
Browse files Browse the repository at this point in the history
* Change configurations for stress tests. Fix BigQueryIOST

* Use optimized writes for BigQueryIOST
  • Loading branch information
Amar3tto authored May 31, 2024
1 parent daf8114 commit 19d57d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public static void tearDownClass() {
Configuration.class),
"large",
Configuration.fromJsonString(
"{\"numColumns\":10,\"rowsPerSecond\":50000,\"minutes\":60,\"numRecords\":5000000,\"valueSizeBytes\":1000,\"pipelineTimeout\":120,\"runner\":\"DataflowRunner\"}",
"{\"numColumns\":10,\"rowsPerSecond\":50000,\"minutes\":60,\"numRecords\":10000000,\"valueSizeBytes\":1000,\"pipelineTimeout\":120,\"runner\":\"DataflowRunner\"}",
Configuration.class));
} catch (IOException e) {
throw new RuntimeException(e);
Expand Down Expand Up @@ -234,6 +234,9 @@ private void runTest() throws IOException {
writeIO =
BigQueryIO.<byte[]>write()
.withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)
.withSuccessfulInsertsPropagation(false)
.withoutValidation()
.optimizedWrites()
.withAvroFormatFunction(
new AvroFormatFn(
configuration.numColumns,
Expand All @@ -246,6 +249,8 @@ private void runTest() throws IOException {
BigQueryIO.<byte[]>write()
.withWriteDisposition(BigQueryIO.Write.WriteDisposition.WRITE_APPEND)
.withSuccessfulInsertsPropagation(false)
.withoutValidation()
.optimizedWrites()
.withFormatFunction(new JsonFormatFn(configuration.numColumns));
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void teardown() {
Configuration.class),
"large",
Configuration.fromJsonString(
"{\"rowsPerSecond\":50000,\"minutes\":60,\"pipelineTimeout\":120,\"numRecords\":5000000,\"valueSizeBytes\":1000,\"runner\":\"DataflowRunner\"}",
"{\"rowsPerSecond\":50000,\"minutes\":60,\"pipelineTimeout\":120,\"numRecords\":10000000,\"valueSizeBytes\":1000,\"runner\":\"DataflowRunner\"}",
Configuration.class));
} catch (IOException e) {
throw new RuntimeException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void teardown() {
Configuration.class),
"large",
Configuration.fromJsonString(
"{\"numRecords\":10000000,\"rowsPerSecond\":25000,\"minutes\":30,\"valueSizeBytes\":1000,\"pipelineTimeout\":300,\"runner\":\"DataflowRunner\"}",
"{\"numRecords\":20000000,\"rowsPerSecond\":50000,\"minutes\":60,\"valueSizeBytes\":1000,\"pipelineTimeout\":180,\"runner\":\"DataflowRunner\"}",
Configuration.class));
} catch (IOException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit 19d57d0

Please sign in to comment.