Id allocation failing 63/83163/3
authorAmitesh Soni <amitesh.soni@ericsson.com>
Fri, 19 Jul 2019 07:10:49 +0000 (12:40 +0530)
committerHema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
Thu, 25 Jul 2019 05:37:26 +0000 (05:37 +0000)
commitd66e832fc696cfb084dd541761712bad5a9b9580
tree4fe4dff7acdafa56917c7e13508308d2247afaf9
parent12914f30c4c3a08b77be316fa3bd084f5bc03a29
Id allocation failing

Issue
=====
While reading data store if data is not present in the DS,
"ExpectedDataObjectNotFoundException" exception is thrown.
Since this exception is not handled, ID allocation is failing.

Fix
====
Added try-catch block to handle the "ReadFailedException" exception
so that the code execution does not stop if read fails.

https://gerrit.ericsson.se/#/c/4354671/

Change-Id: I00423597e1681085b1fbcd187e11e5f2dd7582cd
Signed-off-by: Amitesh Soni <amitesh.soni@ericsson.com>
idmanager/idmanager-impl/src/main/java/org/opendaylight/genius/idmanager/IdManager.java