Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 0f7db50

Browse files
authored
fix: call awaitTermination when close the stream writer (#1111)
1 parent 4a95b95 commit 0f7db50

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2

google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamWriterV2.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ public void close() {
317317
}
318318
if (this.ownsBigQueryWriteClient) {
319319
this.client.close();
320+
try {
321+
this.client.awaitTermination(1, TimeUnit.MINUTES);
322+
} catch (InterruptedException ignored) {
323+
}
320324
}
321325
}
322326

0 commit comments

Comments
 (0)