Added interrupt method to notify caller method 91/78491/6
authorJegadeesh Babu <jegabab1@in.ibm.com>
Thu, 14 Feb 2019 13:36:26 +0000 (19:06 +0530)
committerTakamune Cho <takamune.cho@att.com>
Thu, 14 Feb 2019 15:01:08 +0000 (15:01 +0000)
Called interrupt method on current thread

Issue-ID: APPC-1437
Change-Id: I0dbb8cf01f285c01f96fe4f1c0396999e3361373
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java

index 9ca1f44..3246ef1 100644 (file)
@@ -111,7 +111,10 @@ public class ArtifactHandlerProvider implements AutoCloseable, ArtifactHandlerSe
             checkedFuture.get();
             log.info("Create containers succeeded!");
 
-        } catch (InterruptedException | ExecutionException e) {
+        } catch (InterruptedException e) {
+            log.error("Create containers failed",  e);
+            Thread.currentThread().interrupt();
+        } catch (ExecutionException e) {
             log.error("Create containers failed",  e);
         }
     }