commit | fd3cc05f65ed9f53d69d0c7d300a44578e3fc99f | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Tue Feb 10 15:16:57 2015 -0800 |
committer | alshabib <alshabibi.ali@gmail.com> | Tue Feb 10 15:16:57 2015 -0800 |
tree | 24d15f0961d115c27f012ab1e8791f24358c2bd1 | |
parent | 08f841d0fab38963d1163346b57014ff13c01f9d [diff] |
fix for mastership race condition. Change-Id: Id219bdf00f3d6501027566d54342c5d7c1b27789
diff --git a/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java b/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java index 292d761..c99f874 100644 --- a/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java +++ b/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java
@@ -614,7 +614,11 @@ } // device is connected to this node: - reassertRole(did, myNextRole); + if (store.getDevice(did) != null) { + reassertRole(did, myNextRole); + } else { + log.warn("Device is not yet/no longer in the store: {}", did); + } } }