From 9672d7a5ba4a6bf966b5558a1ccc6e5850034e60 Mon Sep 17 00:00:00 2001 From: "vitess-bot[bot]" <108069721+vitess-bot[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 09:12:36 +0530 Subject: [PATCH] [release-18.0] Fix backup on s3 like storage (#14311) (#14362) Signed-off-by: Leopold Jacquot Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> --- 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,