Fix bugs in context flushing 83/74283/1
authorliamfallon <liam.fallon@est.tech>
Wed, 5 Dec 2018 17:38:40 +0000 (17:38 +0000)
committerliamfallon <liam.fallon@est.tech>
Wed, 5 Dec 2018 17:41:06 +0000 (17:41 +0000)
commit458d71992258d7b9f3b4ab37cf07ecfd2e8fc667
treebba88f8bfe53b0e7b1962d292e7391816e196b2a
parent259039fa91e3038c41f4a322d81e7ea07a78b96e
Fix bugs in context flushing

The context flushing support in the context distributor can throw a
concurrent exception when a lot of context is active and a flush takes
place. This fix introduces proper synchronized access to the album maps.

In addition, there was an incorrect cast in the call to the persist() method
of the persistor.

Change-Id: I6594ffed83a0b34251a0c5c7893d4abb17437fd4
Issue-ID: POLICY-1380
Signed-off-by: liamfallon <liam.fallon@est.tech>
context/context-management/src/main/java/org/onap/policy/apex/context/impl/distribution/AbstractDistributor.java