commit | 5c7d488269ffc21681329e987c80f53201dd874b | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Mon Feb 05 14:50:39 2018 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Wed Feb 07 00:59:07 2018 +0000 |
tree | 70ca4d24e126852b6875c1309aa21610e1eaef8d | |
parent | 46c5eaa7c5fdf76fccaf9b9351bca0c60da22bb9 [diff] |
SONAR suggestion - proper handling of InterruptedException Change-Id: I67a93c064708c207d9ce83fac319682c2d17db60
diff --git a/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java b/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java index 873a0b8..1773154 100644 --- a/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java +++ b/core/net/src/main/java/org/onosproject/cluster/impl/ConfigFileBasedClusterMetadataProvider.java
@@ -196,6 +196,7 @@ try { Thread.sleep((int) Math.pow(2, iterations < 7 ? ++iterations : iterations) * 10L); } catch (InterruptedException e) { + Thread.currentThread().interrupt(); throw Throwables.propagate(e); } }
diff --git a/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java b/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java index 243c3c2..564c3be 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/app/DistributedApplicationStore.java
@@ -610,6 +610,7 @@ } } catch (InterruptedException e) { log.warn("Interrupted while fetching bits for application {}", app.id().name()); + Thread.currentThread().interrupt(); } }
diff --git a/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java b/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java index 7c23823..7f593e7 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/device/impl/GossipDeviceStore.java
@@ -255,6 +255,7 @@ } } catch (InterruptedException e) { log.error("Error during executor shutdown", e); + Thread.currentThread().interrupt(); } deviceDescs.clear();