Handled interrupted Exception 32/78832/2
authorJegadeesh Babu <jegabab1@in.ibm.com>
Wed, 20 Feb 2019 12:59:09 +0000 (18:29 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 21 Feb 2019 14:06:32 +0000 (14:06 +0000)
Sonar Bug Fix

Issue-ID: APPC-1469
Change-Id: I3f1fe6b620e8b01659e1b927b1f5fb667be20648
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/AbstractListener.java

index 2b6fea9..b9e8a6c 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
@@ -93,6 +95,7 @@ public abstract class AbstractListener implements Listener {
             executor.awaitTermination(10, TimeUnit.SECONDS);
         } catch (InterruptedException e) {
             LOG.error("Listener graceful stop() failed", e);
+            Thread.currentThread().interrupt();
         }
         
         // close DMaaP clients