Check for lockref validity while guarding it 30/78130/2
authorMohammad Salehe <salehe@cs.toronto.edu>
Fri, 8 Feb 2019 16:22:33 +0000 (11:22 -0500)
committerMohammad Salehe <salehe@cs.toronto.edu>
Mon, 25 Feb 2019 03:23:39 +0000 (22:23 -0500)
commitdee199dd21b286e4c9e3af36fbc0d646168615e4
treec595324332461fcaf69b5dcff6ed1044e96d301a
parentfdc837a3e2b654cff60e8b9e1142840c07047338
Check for lockref validity while guarding it

Lock references are not unique until the guard is updated, so
in case of contention, we might not be able to use the lock
reference we have. We should abort so the caller can try again

Change-Id: I52cfb8c6979cced81dd20f4ef9b55b79121f121f
Issue-ID: MUSIC-148
Signed-off-by: Mohammad Salehe <salehe@cs.toronto.edu>
src/main/java/org/onap/music/lockingservice/cassandra/CassaLockStore.java