summaryrefslogtreecommitdiffstats
path: root/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src
diff options
context:
space:
mode:
authorDriptaroop Das <driptaroop.das@in.ibm.com>2019-02-19 00:16:57 +0530
committerTakamune Cho <takamune.cho@att.com>2019-02-21 21:18:47 +0000
commit1a285b3b92e3253c9e1ae45c42be1c157f5120e9 (patch)
treefdffea0e2bc94257e6ce58a3459fd05974ad8513 /appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src
parentbe04e965eec17ad6147dc7b93d7d6c757f787d40 (diff)
Sonar Fixes - ProviderStackOperation.java
Sonar Fixes - ProviderStackOperation.java Issue-ID: APPC-1461 Change-Id: I31aef2c7328f1c3970e18a30530a9848bd5b6466 Signed-off-by: Driptaroop Das <driptaroop.das@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src')
-rw-r--r--appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/base/ProviderStackOperation.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/base/ProviderStackOperation.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/base/ProviderStackOperation.java
index 66b901a2a..687e24aa6 100644
--- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/base/ProviderStackOperation.java
+++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/base/ProviderStackOperation.java
@@ -5,6 +5,7 @@
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Copyright (C) 2017 Amdocs
+ * Modifications Copyright (C) 2019 IBM.
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -95,7 +96,9 @@ public abstract class ProviderStackOperation extends ProviderOperation {
} else {
try {
Thread.sleep(pollInterval * 1000);
- } catch (InterruptedException ignored) {
+ } catch (InterruptedException ex) {
+ logger.trace(ex.getMessage(), ex);
+ Thread.currentThread().interrupt();
}
}
return false;
@@ -181,7 +184,8 @@ public abstract class ProviderStackOperation extends ProviderOperation {
try {
Thread.sleep(pollInterval * 1000);
} catch (InterruptedException e) {
- logger.trace("Sleep threw interrupted exception, should never occur");
+ logger.trace("Sleep threw interrupted exception, should never occur", e);
+ Thread.currentThread().interrupt();
}
}
}