mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
gcs: low level retry all operations if necessary
Google cloud storage doesn't normally need retries, however certain things (eg bucket creation and removal) are rate limited and do generate 429 errors. Before this change the integration tests would regularly blow up with errors from GCS rate limiting bucket creation and removal. After this change we low level retry all operations using the same exponential backoff strategy as used in the google drive backend.
This commit is contained in:
@@ -277,7 +277,6 @@ func (t *test) cleanFs() error {
|
||||
remote := dir.Remote()
|
||||
if fstest.MatchTestRemote.MatchString(remote) {
|
||||
log.Printf("Purging %s%s", t.remote, remote)
|
||||
time.Sleep(2500 * time.Millisecond) // sleep to rate limit bucket deletes for gcs
|
||||
dir, err := fs.NewFs(t.remote + remote)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user