Skip to content

fix: client.close() should wait until the channels are terminated bef…#1000

Merged
kolea2 merged 2 commits intogoogleapis:1.22.0-spfrom
kolea2:port-916
Sep 10, 2021
Merged

fix: client.close() should wait until the channels are terminated bef…#1000
kolea2 merged 2 commits intogoogleapis:1.22.0-spfrom
kolea2:port-916

Conversation

@kolea2
Copy link
Contributor

@kolea2 kolea2 commented Sep 9, 2021

…ore shutting down the executor (#916)

  • fix: client.close() should wait until the channels are terminated before shutting down the executor

Previously the client.close() would simply shutdown the channel pool and the executor immediately after. Unfortunately this leads to RPCs that would hang forever because an outstanding RPC didnt have an executor to notify of its completion. This PR ensures that the channels are drained before shutting down the executor

  • copyright

(cherry picked from commit 914f0cc)

…ore shutting down the executor (googleapis#916)

* fix: client.close() should wait until the channels are terminated before shutting down the executor

Previously the client.close() would simply shutdown the channel pool and the executor immediately after. Unfortunately this leads to RPCs that would hang forever because an outstanding RPC didnt have an executor to notify of its completion. This PR ensures that the channels are drained before shutting down the executor

* copyright

(cherry picked from commit 914f0cc)
@kolea2 kolea2 requested a review from a team as a code owner September 9, 2021 22:47
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 9, 2021
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/java-bigtable API. label Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants