-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement Bigtable connection refresh (#5550)
This fixes #4996. This works, however it is not in its final form. Currently, background threads running `CompletionQueue` are created underhandedly, without users' control in every Bigtable `{Admin,InstanceAdmin,Data}Client`. The choice of the `{Admin,InstanceAdmin,Data}Client` rather than e.g. `Table` is consistent with Spanner and PubSub, where counterparts of those clients are called Connections. The next steps will contain removing the `CompletionQueue` from both the underlying clients and the user-facing API and instead providing `BackgroundThreads` to the ctors. I didn't decide to do this in chunks because otherwise it would either be confusing, which CompletionQueues are used or we'd have to duplicate the whole API to use the CompletionQueue provided in the ctors. More tests will be possible when `BackgroundThreadsFactory` will be passed in the `ClientOptions`
- Loading branch information
Showing
5 changed files
with
231 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters