Bug 5504: Fix IllegalStateException handling from commit 44/40044/2
authorTom Pantelis <tpanteli@brocade.com>
Wed, 8 Jun 2016 06:45:20 +0000 (02:45 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 8 Jun 2016 07:34:46 +0000 (03:34 -0400)
commit4f490fd1a2ccb20f94148cf9789282af60a8e425
treea6361ee918f75b59ca5429503baed17fcab81bf0
parent9eaa3422d3c65ec51e73e2443e89964fcd9671cf
Bug 5504: Fix IllegalStateException handling from commit

https://git.opendaylight.org/gerrit/#/c/36172 attempted to
handle/workaround IllegalStateException thrown from commit to re-apply
the transaction. However the change wasn't correct - the commit call
actually throws an ExecutionException which the IllegalStateException as
the cause. So we need to catch ExecutionException and check it the cause
is IllegalStateException.

Change-Id: I65b2d646a60a700d070dea822d20b0e649290643
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java