From 29a772f710bd05bcf1a6a3da9af9b198bc003482 Mon Sep 17 00:00:00 2001 From: Wiktor Garbarek Date: Mon, 9 Jul 2018 15:18:19 +0200 Subject: Fix handling of InterruptedException in AAI-Champ Added thread interrupts Change-Id: Ic5b7eef71354efd02736e88a1e6716aa84169898 Issue-ID: AAI-1367 Signed-off-by: Wiktor Garbarek --- .../java/org/onap/aai/champtitan/graph/impl/TitanChampGraphImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'champ-lib/champ-titan') diff --git a/champ-lib/champ-titan/src/main/java/org/onap/aai/champtitan/graph/impl/TitanChampGraphImpl.java b/champ-lib/champ-titan/src/main/java/org/onap/aai/champtitan/graph/impl/TitanChampGraphImpl.java index f3d821c..209bf79 100644 --- a/champ-lib/champ-titan/src/main/java/org/onap/aai/champtitan/graph/impl/TitanChampGraphImpl.java +++ b/champ-lib/champ-titan/src/main/java/org/onap/aai/champtitan/graph/impl/TitanChampGraphImpl.java @@ -362,6 +362,7 @@ public final class TitanChampGraphImpl extends AbstractTinkerpopChampGraph { } } catch (InterruptedException e) { LOGGER.warn("Interrupted while waiting for object index creation status"); + Thread.currentThread().interrupt(); return; } @@ -373,6 +374,7 @@ public final class TitanChampGraphImpl extends AbstractTinkerpopChampGraph { updateIndexMgmt.commit(); } catch (InterruptedException e) { LOGGER.warn("Interrupted while reindexing for object index"); + Thread.currentThread().interrupt(); return; } catch (ExecutionException e) { LOGGER.warn("Exception occurred during reindexing procedure for creating object index " + indexName, e); @@ -385,6 +387,7 @@ public final class TitanChampGraphImpl extends AbstractTinkerpopChampGraph { .call(); } catch (InterruptedException e) { LOGGER.warn("Interrupted while waiting for index to transition to ENABLED state"); + Thread.currentThread().interrupt(); return; } } -- cgit 1.2.3-korg