Handled exception 56/79456/2
authorJegadeesh Babu <jegabab1@in.ibm.com>
Fri, 1 Mar 2019 14:16:41 +0000 (19:46 +0530)
committerTakamune Cho <takamune.cho@att.com>
Fri, 1 Mar 2019 16:05:04 +0000 (16:05 +0000)
Sonar fix

Issue-ID: APPC-1518
Change-Id: Ia052693a420bbd7b06048336d518a49e598b4265
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java

index 541418f..516784c 100644 (file)
@@ -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.");