-
Type: Bug
-
Status: Resolved (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.0, 2.2.2
-
Component/s: None
-
Labels:None
-
Story Points:2
While running onos in cluster (3 node), exception is recieved due to device getting disconnected from one node and connecting to other node. Below is the exception :
13:59:02.322 ERROR [NetconfControllerImpl] Exception occured because of {}
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
at java.util.ArrayList.get(ArrayList.java:458) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfControllerImpl.relayMessageToMaster(NetconfControllerImpl.java:575) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfControllerImpl.executeAtMaster(NetconfControllerImpl.java:557) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfSessionProxyImpl.executeAtMasterCompletableFuture(NetconfSessionProxyImpl.java:58) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfSessionProxyImpl.executeAtMaster(NetconfSessionProxyImpl.java:67) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfSessionProxyImpl.requestSync(NetconfSessionProxyImpl.java:112) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfSessionProxyImpl.requestSync(NetconfSessionProxyImpl.java:119) ~[?:?]
at org.onosproject.netconf.AbstractNetconfSession.close(AbstractNetconfSession.java:351) ~[?:?]
at org.onosproject.netconf.ctl.impl.DefaultNetconfDevice.disconnect(DefaultNetconfDevice.java:129) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfControllerImpl.stopDevice(NetconfControllerImpl.java:467) ~[?:?]
at org.onosproject.netconf.ctl.impl.NetconfControllerImpl.disconnectDevice(NetconfControllerImpl.java:445) ~[?:?]
at org.onosproject.provider.netconf.device.impl.NetconfDeviceProvider.roleChanged(NetconfDeviceProvider.java:285) ~[?:?]
at org.onosproject.net.device.impl.DeviceManager.applyRoleAndProbe(DeviceManager.java:872) ~[?:?]
at org.onosproject.net.device.impl.DeviceManager.reassertRole(DeviceManager.java:927) ~[?:?]
at org.onosproject.net.device.impl.DeviceManager.handleMastershipEvent(DeviceManager.java:989) ~[?:?]
at org.onosproject.net.device.impl.DeviceManager$InternalMastershipListener.lambda$event$0(DeviceManager.java:1002) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]