From e13737383f271dc98809b7f34186fb003a447bfd Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 30 Dec 2020 16:02:10 +0100 Subject: [PATCH] mirror: FS should ignore some non supported S3 events (#3554) Bucket creation & removal are events only supported by MinIO server and they are not meaningful for FS. Just ignore them at FS level and avoid reporting an error. --- cmd/client-fs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/client-fs.go b/cmd/client-fs.go index e116180a..650f2a00 100644 --- a/cmd/client-fs.go +++ b/cmd/client-fs.go @@ -149,7 +149,8 @@ func (f *fsClient) Watch(ctx context.Context, options WatchOptions) (*WatchObjec case "get": fsEvents = append(fsEvents, EventTypeGet...) default: - return nil, errInvalidArgument().Trace(event) + // Event type not supported by FS client, such as + // bucket creation or deletion, ignore it. } }