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

fix: we should isolate the client used in StreamWriter and the client used in ConnectionWorker #1933

Merged
merged 18 commits into from Jan 19, 2023

Conversation

yirutang
Copy link
Contributor

@yirutang yirutang commented Jan 17, 2023

Turned out dataflow is using a connection while they might close the externally passed in client. Resulting in a non-recoverable UNAVAILABLE error.

@yirutang yirutang requested review from a team and aribray January 17, 2023 19:40
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented Jan 17, 2023

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels Jan 17, 2023
@@ -206,7 +205,9 @@ private StreamWriter(Builder builder) throws IOException {
"Trying to enable connection pool in non-default stream.");
}

BigQueryWriteClient client = getBigQueryWriteClient(builder);
// We need a client to perform some getWriteStream calls.
BigQueryWriteClient client =
Copy link
Contributor

@GaoleMeng GaoleMeng Jan 17, 2023

Choose a reason for hiding this comment

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

why do we need to create another client here if the passed in client is null?

we won't use the newly created client?

@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2023
@yirutang yirutang added kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jan 18, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2023
@gcf-owl-bot gcf-owl-bot bot requested a review from a team as a code owner January 18, 2023 00:44
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@yirutang yirutang added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2023
@yirutang yirutang added kokoro:run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jan 18, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 18, 2023
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. labels Jan 18, 2023
@yirutang yirutang added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@yirutang yirutang merged commit 3530672 into googleapis:main Jan 19, 2023
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. kokoro:run Add this label to force Kokoro to re-run the tests. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants