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(bigquery/storage/managedwriter): fix double-close error, add tests #4502

Merged

Conversation

shollyman
Copy link
Contributor

@shollyman shollyman commented Jul 26, 2021

Writing tests picked up the error, so hooray.

BufferedStream integration test exposed that while the API surface is in preview without special requirements, advanced features such as the FlushRows rpc used by BufferedStream does. This has been whitelisted for test projects, but we'll want to add this to doc.go when I start that PR.

Towards #4366

Writing tests picked up the error, so hooray.
@shollyman shollyman added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 26, 2021
@shollyman shollyman requested a review from a team as a code owner July 26, 2021 23:14
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 26, 2021
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Jul 26, 2021
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

Just a couple of small things

if err != nil {
t.Errorf("couldn't get stream info: %v", err)
}
log.Printf("info id: %s type: %s", info.GetName(), info.GetType().String())
Copy link
Member

Choose a reason for hiding this comment

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

If you want to log here I would recommend t.Log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, this (and the other comment) was due to some debugging I was doing, which exposed the need to backend whitelist some functionality. Cleared it out.

bigquery/storage/managedwriter/managed_stream.go Outdated Show resolved Hide resolved
@shollyman shollyman removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 27, 2021
@shollyman shollyman requested a review from codyoss July 27, 2021 23:48
@shollyman shollyman added the automerge Merge the pull request once unit tests and other checks pass. label Jul 28, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit c6cf659 into googleapis:master Jul 28, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jul 28, 2021
@shollyman shollyman deleted the fr-managedwriter-jsontesting branch July 28, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants