prodriguezdefino commented on code in PR #17550:
URL: https://github.com/apache/beam/pull/17550#discussion_r876248346
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWriteUnshardedRecords.java:
##########
@@ -409,9 +447,18 @@ private void initializeDatasetService(PipelineOptions
pipelineOptions) {
}
}
+ @Setup
+ public void setup() {
+ if (useDefaultStream) {
+ destinations = Maps.newHashMap();
+ }
+ }
+
@StartBundle
public void startBundle() throws IOException {
- destinations = Maps.newHashMap();
+ if (!useDefaultStream) {
Review Comment:
Only want to reuse the destination state for the default stream clients.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]