Code Review
/
aai
/
champ.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix handling of InterruptedException in AAI-Champ
[aai/champ.git]
/
champ-lib
/
champ-titan
/
src
/
main
/
java
/
org
/
onap
/
aai
/
champtitan
/
graph
/
impl
/
TitanChampGraphImpl.java
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
(file)
--- 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");
}
} catch (InterruptedException e) {
LOGGER.warn("Interrupted while waiting for object index creation status");
+ Thread.currentThread().interrupt();
return;
}
return;
}
@@
-373,6
+374,7
@@
public final class TitanChampGraphImpl extends AbstractTinkerpopChampGraph {
updateIndexMgmt.commit();
} catch (InterruptedException e) {
LOGGER.warn("Interrupted while reindexing for object index");
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);
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");
.call();
} catch (InterruptedException e) {
LOGGER.warn("Interrupted while waiting for index to transition to ENABLED state");
+ Thread.currentThread().interrupt();
return;
}
}
return;
}
}