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

chore(bigquery/storage/managedwriter): internal refactor (flow controller, ids) #7104

Merged
merged 3 commits into from
Dec 13, 2022

Conversation

shollyman
Copy link
Contributor

This PR adds a new internal mechanism to simplify duplicating flow controllers, and does some preliminary work to wire in a UUID-based ID for managed stream instances. Neither is used elsewhere at this time, but lay the foundation for further refactoring.

Towards: #7103

This PR adds a new internal mechanism to simplify duplicating flow
controllers, and does some preliminary work to wire in a UUID-based
ID for managed stream instances.  Neither is used elsewhere.

Towards: googleapis#7103
@shollyman shollyman requested a review from a team November 29, 2022 06:05
@shollyman shollyman requested a review from a team as a code owner November 29, 2022 06:05
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the BigQuery API. labels Nov 29, 2022
@shollyman shollyman requested review from alvarowolfx and removed request for mhaligowski November 29, 2022 06:06
@@ -50,6 +50,17 @@ func newFlowController(maxInserts, maxInsertBytes int) *flowController {
return fc
}

// copyFlowController is for creating a new flow controller based on
// settings from another. It does not copy flow state.
func copyFlowController(in *flowController) *flowController {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this function go to the test file as is only being used there or there are plans to use it later ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is in prep of future refactors, it will be used for replicating the flow controller as we spin up new connections.

@shollyman shollyman added the automerge Merge the pull request once unit tests and other checks pass. label Dec 13, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit f2b1f1b into googleapis:main Dec 13, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 13, 2022
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. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants