Skip to content

Commit

Permalink
fix: call awaitTermination when close the stream writer (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
yirutang committed Jun 5, 2021
1 parent 4a95b95 commit 0f7db50
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -317,6 +317,10 @@ public void close() {
}
if (this.ownsBigQueryWriteClient) {
this.client.close();
try {
this.client.awaitTermination(1, TimeUnit.MINUTES);
} catch (InterruptedException ignored) {
}
}
}

Expand Down

0 comments on commit 0f7db50

Please sign in to comment.