Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve client settings #2097

Merged
merged 10 commits into from May 3, 2023
Merged

Conversation

yirutang
Copy link
Contributor

@yirutang yirutang commented May 1, 2023

  1. Add ExecutorProvider to sample
  2. Add KeepAlive setting to default set up.

@yirutang yirutang requested a review from a team as a code owner May 1, 2023 22:29
@yirutang yirutang requested a review from jainsahab May 1, 2023 22:29
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels May 1, 2023
@yirutang yirutang requested a review from GaoleMeng May 1, 2023 22:35
@yirutang yirutang changed the title Improve client settings feat: Improve client settings May 1, 2023
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label May 1, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 1, 2023
@@ -151,7 +153,10 @@ public void initialize(TableName parentTable)
// For more information about JsonStreamWriter, see:
// https://googleapis.dev/java/google-cloud-bigquerystorage/latest/com/google/cloud/bigquery/storage/v1/JsonStreamWriter.html
streamWriter =
JsonStreamWriter.newBuilder(parentTable.toString(), BigQueryWriteClient.create()).build();
JsonStreamWriter.newBuilder(parentTable.toString(), BigQueryWriteClient.create())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

our example code create the client by "BigQueryWriteClient.create()" does that means we are not passing any keepalive setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added as a default setting. If I use a new transport in the sample, then the default setting will be overwritten.

I think in most cases, users doesn't need to reset the transport settings, our default is covering all that's needed (being set by Dataflow).

@Neenu1995 Neenu1995 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 3, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 3, 2023
@gcf-owl-bot gcf-owl-bot bot requested a review from a team as a code owner May 3, 2023 13:53
@yirutang yirutang merged commit 4fc2fac into googleapis:main May 3, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants