fix for indefinite wait on the resource lock 04/57004/7
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Sun, 14 May 2017 06:40:00 +0000 (12:10 +0530)
committerPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Thu, 18 May 2017 04:37:46 +0000 (10:07 +0530)
commitaade09e2c660b91e92362737029461375b2b1fa3
tree564d9e0b2904de2a0e4a6c13c70b57f5192be7ff
parent80a80017fcc372c3e6d3191f1054a0091587eac4
fix for indefinite wait on the resource lock

* Currently idmanager manager mutates the allocated id list (to make it sorted) while writing it into datastore which causes ConcurrentModificationException.
This leads to resource lock is never released and makes release id thread to
wait indefinitley for the lock.
* added lock retry logic with timed future.get version to handle any missed signals

Change-Id: I5f271f6054a44aa50d19f3130a2d5a73230ff50c
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
idmanager/idmanager-impl/src/main/java/org/opendaylight/genius/idmanager/jobs/UpdateIdEntryJob.java
lockmanager/lockmanager-impl/src/main/java/org/opendaylight/lockmanager/LockManager.java