From 6311b5444724e6aa77856df9a928ad2a64390e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9opold=20Jacquot?= Date: Wed, 25 Oct 2023 18:46:53 +0200 Subject: [PATCH] Fix backup on s3 like storage (#14311) Signed-off-by: Leopold Jacquot --- go/vt/mysqlctl/s3backupstorage/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/vt/mysqlctl/s3backupstorage/s3.go b/go/vt/mysqlctl/s3backupstorage/s3.go index 06cff1793b5..ef3bfc37b31 100644 --- a/go/vt/mysqlctl/s3backupstorage/s3.go +++ b/go/vt/mysqlctl/s3backupstorage/s3.go @@ -173,7 +173,8 @@ func (bh *S3BackupHandle) AddFile(ctx context.Context, filename string, filesize }) object := objName(bh.dir, bh.name, filename) sendStats := bh.bs.params.Stats.Scope(stats.Operation("AWS:Request:Send")) - _, err := uploader.UploadWithContext(ctx, &s3manager.UploadInput{ + // Using UploadWithContext breaks uploading to Minio and Ceph https://github.com/vitessio/vitess/issues/14188 + _, err := uploader.Upload(&s3manager.UploadInput{ Bucket: &bucket, Key: object, Body: reader,