use un-clustered UpgradeStateListener with cache 35/75535/7
authorMichael Vorburger <vorburger@redhat.com>
Tue, 28 Aug 2018 18:33:42 +0000 (20:33 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Thu, 6 Sep 2018 11:24:29 +0000 (11:24 +0000)
commit24551b34bdfd0d4a216a5145d432932be634960e
tree018aac2a4f7290d65e81e1186d2245444dcd6f2a
parent1d85dccb4f48c47b90c6aae95ce99167f4bc7a7e
use un-clustered UpgradeStateListener with cache

doing this with a clustered DTCL only leads to
OptimisticLockFailedException (OLFE) on nodes, but there's really no
need for this to be clustered; it's sufficient for 1 node (leader) to
ract to changes and update the flag.

We also replace the isUpgradeInProgress with a DataObjectCache, because
that (only) does need to use a clustered DTCL to work correctly.

JIRA: GENIUS-207
Change-Id: I08601afb77ca9faaa29e2839aefcdfbcbbb66f5e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/genius/mdsalutil/internal/UpgradeStateListener.java