diff options
author | Eirik Nygaard <eirik.nygaard@yahooinc.com> | 2022-04-06 08:48:54 +0200 |
---|---|---|
committer | Eirik Nygaard <eirik.nygaard@yahooinc.com> | 2022-04-06 12:46:57 +0200 |
commit | c1af4a6d025d78c48af52413957b74f720f0d76f (patch) | |
tree | ed38501ebd32911dd5b2dccb4ebf5c103b3ca7d6 /controller-server | |
parent | 3c4cddd0b08666e497996e7f5b499e5a86fc68eb (diff) |
A new source must only contain the existing for a notification to already exist
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java index 5244d46d0a9..3a0c92c361a 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/NotificationsDb.java @@ -73,7 +73,7 @@ public class NotificationsDb { var notification = new Notification(clock.instant(), type, level, source, messages); // Be conservative for now, only dispatch notifications if they are from new source or with new type. // the message content and level is ignored for now - if (!existingNotifications.stream().anyMatch(n -> n.source().equals(source) && n.type().equals(type))) { + if (!existingNotifications.stream().anyMatch(n -> source.contains(n.source()) && n.type().equals(type))) { changed = Optional.of(notification); } notifications.add(notification); |