From 5145abc0955d66ca5962677c7b8f952188fe1549 Mon Sep 17 00:00:00 2001 From: Sanjeev Pellikoduku <SPellikoduku@slb.com> Date: Thu, 24 Mar 2022 15:50:05 -0500 Subject: [PATCH] Fixed error exception --- .../provider/azure/messageBus/ProcessNotification.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/ProcessNotification.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java index 8690846ea..8b7c0dc49 100644 --- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java +++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/messageBus/ProcessNotification.java @@ -82,7 +82,11 @@ public class ProcessNotification { if (!response.isSuccessCode()) { telemetryClient.trackRequest(requestTelemetry); - throw new Exception(NOT_ACKNOWLEDGE); + if(message.getDeliveryCount()>8){ + LOGGER.info("Message delivery status is 'Abandon' with notificationId: {}, Count: {}", notificationContent.getNotificationId(), message.getDeliveryCount()); + } else { + LOGGER.error(NOT_ACKNOWLEDGE); + } }else{ requestTelemetry.setResponseCode("200"); requestTelemetry.setSuccess(true); -- GitLab