Bug 2158: Fixed TopologyManager for edge updates. 76/12876/7
authorHideyuki Tai <Hideyuki.Tai@necam.com>
Sat, 15 Nov 2014 00:55:46 +0000 (19:55 -0500)
committerHideyuki Tai <Hideyuki.Tai@necam.com>
Tue, 23 Dec 2014 23:30:44 +0000 (18:30 -0500)
commit1cdbaaa2b55a8be4948d782ae32d7cf278cf14cf
tree55513b1910544028f54257bd962e1a4df0685d77
parent8350f87e0e1190fcc84099d3b7446a2f1de9e5f9
Bug 2158: Fixed TopologyManager for edge updates.

MD-SAL does not keep the order of notification of data changes. In the
result, TopologyManager sometimes receives a notification of an edge
addition before it is notified of the addition of the NodeConnector
which is the head of the edge. In such a case, TopologyManager ignores
the edge notification, and fails to create correct topology information.
This is one of the root causes of Bug 2158.
To handle this issue, this patch fixed TopologyManager to queue edge
notifications, and wait corresponding NodeConnector updates.

Change-Id: Ifeabc91d856eb9cc88ae3595d14e0a6819ec7454
Signed-off-by: Hideyuki Tai <Hideyuki.Tai@necam.com>
opendaylight/adsal/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/Activator.java
opendaylight/adsal/topologymanager/implementation/src/main/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImpl.java
opendaylight/adsal/topologymanager/implementation/src/test/java/org/opendaylight/controller/topologymanager/internal/TopologyManagerImplTest.java