aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJegadeesh Babu <jegabab1@in.ibm.com>2019-03-01 19:46:41 +0530
committerTakamune Cho <takamune.cho@att.com>2019-03-01 16:05:04 +0000
commiteac3e3faf11bca0903d6fdfe8cc0710b87cb6123 (patch)
tree6c98130d8a608d2105db49049eb4f60af9c58394
parent37a3bbf542f8e5cd07338855b9ac3a90eb5f124e (diff)
Handled exception
Sonar fix Issue-ID: APPC-1518 Change-Id: Ia052693a420bbd7b06048336d518a49e598b4265 Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
-rw-r--r--appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java b/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java
index 541418fe8..516784c66 100644
--- a/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java
+++ b/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modifications Copyright (C) 2019 IBM
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -142,6 +144,7 @@ public class SdcCallback implements INotificationCallback {
executor.shutdownNow(); // In case of timeout
} catch (InterruptedException e) {
logger.error("Error in SdcCallback for stop(int waitSec) method due to InterruptedException: reason= " + e.getMessage(), e);
+ Thread.currentThread().interrupt();
}
logger.info(String.format("Attempting to shutdown cleanly: %s", cleanShutdown ? "SUCCESS" : "FAILURE"));
logger.info("Shutdown complete.");