Bump upstreams for 2022.09 Chlorine
[ovsdb.git] / southbound / southbound-impl / src / main / java / org / opendaylight / ovsdb / southbound / SouthboundUtil.java
index 3069d356e63c9c8c26ba9d7b25bd239810d8d767..ced4324926d7f70c57bef948bdc3d9d762ff9d0b 100644 (file)
@@ -59,8 +59,7 @@ public final class SouthboundUtil {
                 // Note: erasure makes this safe in combination with the typecheck below
                 InstanceIdentifier<Node> path = (InstanceIdentifier<Node>) ref.getValue();
 
-                FluentFuture<Optional<Node>> nf = transaction.read(
-                        LogicalDatastoreType.OPERATIONAL, path);
+                FluentFuture<Optional<Node>> nf = transaction.read(LogicalDatastoreType.OPERATIONAL, path);
                 transaction.close();
                 Optional<Node> optional = nf.get();
                 if (optional != null && optional.isPresent()) {
@@ -104,7 +103,7 @@ public final class SouthboundUtil {
             }
         } catch (InterruptedException | ExecutionException e) {
             LOG.warn("Read Operational/DS for Node failed! {}", connectionIid, e);
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         }
         return node;
     }
@@ -121,7 +120,7 @@ public final class SouthboundUtil {
             }
         } catch (InterruptedException | ExecutionException e) {
             LOG.warn("Read Operational/DS for Node failed! {}", connectionIid, e);
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         }
         return node;
     }