IDManager fixes for restart scenario 44/37244/2
authorunknown <manu.b@ericsson.com>
Thu, 7 Apr 2016 09:03:19 +0000 (14:33 +0530)
committermanubk2003 <manu.b@ericsson.com>
Tue, 19 Apr 2016 10:22:17 +0000 (15:52 +0530)
commit55481f6f0a6e07fd5a01e37f3ee45ae9ee775414
tree9f2cace46b86e9d0f7ddc30190152853ec89564a
parentf16c3389a9a39bbfceae90191755889b7407e228
IDManager fixes for restart scenario

* ID Entry list is added to parent instead of child. During id
* allocation, check is added for existing id in parent pool.
* Without this fix, each node in cluster used to check only in the
* child pool. And when leader changes during restart, child pool
* didn't have the corresponding id-entry, resulting in a new
* different id.

Change-Id: I479da293eb557915c6a20eaaacc364b5e90c2bc1
Signed-off-by: Manu B <manu.b@ericsson.com>
idmanager/idmanager-impl/src/main/java/org/opendaylight/idmanager/IdManager.java
idmanager/idmanager-impl/src/test/java/org/opendaylight/idmanager/test/IdManagerTest.java