"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
fix: do not retry multipart upload chunk on 404 (upload session not found)
water5d1feea7e862
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex b454eee26..38f5bfef7 100644--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -2681,9 +2681,8 @@ func (o *Object) uploadFragment(ctx context.Context, url string, start int64, to}return true, fmt.Errorf("retry this chunk skipping %d bytes: %w", skip, err)} else if err != nil && resp != nil && resp.StatusCode == http.StatusNotFound {- fs.Debugf(o, "Received 404 error: assuming eventual consistency problem with session - retrying chunk: %v", err)- time.Sleep(5 * time.Second) // a little delay to help things along- return true, err+ fs.Debugf(o, "Received 404 error: upload session not found - not retrying: %v", err)+ return false, fserrors.NoLowLevelRetryError(err)}if err != nil {return shouldRetry(ctx, resp, err)