From f645188c3e3de65e41f6f5d53b3c3aca7d491770 Mon Sep 17 00:00:00 2001 From: Jegadeesh Babu Date: Thu, 14 Feb 2019 19:06:26 +0530 Subject: Added interrupt method to notify caller method Called interrupt method on current thread Issue-ID: APPC-1437 Change-Id: I0dbb8cf01f285c01f96fe4f1c0396999e3361373 Signed-off-by: Jegadeesh Babu --- .../java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'appc-inbound/appc-artifact-handler') diff --git a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java index 9ca1f44a4..3246ef1ff 100644 --- a/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java +++ b/appc-inbound/appc-artifact-handler/provider/src/main/java/org/onap/appc/artifact/handler/ArtifactHandlerProvider.java @@ -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); } } -- cgit 1.2.3-korg