Skip to content

Commit f390fbf

Browse files
committed
Delay GCS PCU client close
1 parent d080ba0 commit f390fbf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pbm/storage/gcs/google_client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ func (g googleClient) Close() error {
109109
return nil
110110
}
111111

112+
if g.cfg.parallelUploadEnabled() {
113+
// Google SDK parallel upload starts temporary object cleanup asynchronously
114+
// after Writer.Close returns. Give it a short window before closing the client.
115+
time.Sleep(2 * time.Second)
116+
}
117+
112118
return g.client.Close()
113119
}
114120

0 commit comments

Comments
 (0)