KEMBAR78
fix: Close based on whether connection is active, not status variable by gnanda · Pull Request #1750 · googleapis/java-bigquerystorage · GitHub
Skip to content

Conversation

@gnanda
Copy link
Contributor

@gnanda gnanda commented Aug 16, 2022

Final status isn't set after retriable error, but if we're not connected, there's no point in waiting for a done callback.

Unit tests aren't set up for this, but verified by temporarily adding 10m wait to IT, which works after fix.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@gnanda gnanda requested review from a team and shollyman August 16, 2022 00:10
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels Aug 16, 2022
@gnanda gnanda requested a review from yirutang August 16, 2022 00:10
this.lock.lock();
try {
if (connectionFinalStatus != null) {
if (!this.streamConnectionIsConnected) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am wondering if there is a way to unit test this case?

@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 16, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 16, 2022
@yirutang yirutang merged commit ce7f3e0 into googleapis:main Aug 16, 2022
@gnanda gnanda deleted the fix_close branch September 2, 2022 21:39
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: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants