From 510ec153b96c52c67cb9ae816b3c2158e89c04a3 Mon Sep 17 00:00:00 2001 From: Praveen raj Mani Date: Sat, 15 Jun 2019 15:44:27 +0530 Subject: [PATCH] Refreshing notification system should not erase the rules-map of other buckets (#7758) Fixes #7707 --- cmd/notification.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/notification.go b/cmd/notification.go index eae013fe6..a2a0fda0b 100644 --- a/cmd/notification.go +++ b/cmd/notification.go @@ -656,7 +656,9 @@ func (sys *NotificationSys) refresh(objAPI ObjectLayer) error { ctx := logger.SetReqInfo(context.Background(), &logger.ReqInfo{BucketName: bucket.Name}) config, err := readNotificationConfig(ctx, objAPI, bucket.Name) if err != nil && err != errNoSuchNotifications { - return err + if _, ok := err.(*event.ErrARNNotFound); ok { + continue + } } if err == errNoSuchNotifications { continue