From bd94afacda980c12a9dd3c38b7981529f505e7aa Mon Sep 17 00:00:00 2001
From: "Nikhil Singh[MicroSoft]" <nikhilsingh@microsoft.com>
Date: Tue, 23 Nov 2021 07:02:10 +0000
Subject: [PATCH] Exception handling to fix partition service unavailability
 issue

---
 .../provider/azure/messageBus/SubscriptionManagerImpl.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java
index 9edeecf9f..d4dfe1dbf 100644
--- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java
+++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/SubscriptionManagerImpl.java
@@ -134,6 +134,10 @@ public class SubscriptionManagerImpl implements ISubscriptionManager {
 
     @Override
     public void run() {
-        subscribeNotificationsEvent();
+        try {
+            subscribeNotificationsEvent();
+        } catch (Exception e) {
+            LOGGER.error("An exception occurred while subscription registration process : ", e);
+        }
     }
 }
-- 
GitLab