diff options
Diffstat (limited to 'common-app-api')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/common/datastructure/FunctionalInterfaces.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/datastructure/FunctionalInterfaces.java b/common-app-api/src/main/java/org/openecomp/sdc/common/datastructure/FunctionalInterfaces.java index 3f6fb4c298..e66af77648 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/datastructure/FunctionalInterfaces.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/common/datastructure/FunctionalInterfaces.java @@ -491,7 +491,11 @@ public class FunctionalInterfaces { try { T calcValue = future.get(timeoutInMs, TimeUnit.MILLISECONDS); result = Either.left(calcValue); - } catch (InterruptedException | ExecutionException | TimeoutException e) { + } catch (InterruptedException e) { + LOGGER.debug("InterruptedException in runMethodWithTimeOut", e); + Thread.currentThread().interrupt(); + result = Either.right(false); + } catch (ExecutionException | TimeoutException e) { LOGGER.debug("method run was canceled because it has passed its time limit of {} MS", timeoutInMs, e); result = Either.right(false); } finally { |