Fix race condition in AaiCqResponse 79/107579/3
authorJim Hahn <jrh3@att.com>
Tue, 12 May 2020 16:11:14 +0000 (12:11 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 12 May 2020 16:36:43 +0000 (12:36 -0400)
commit56564f91a91e496cac03ba7cae5a7d935140a574
tree36c77a208f147d22db9b2ef673c8dda43bfe08de
parent6ee3629b07f2167c9c3253142ea8e4d17a4848d5
Fix race condition in AaiCqResponse

The JAXB unmarshaller used by AaiCqResponse is not thread safe.  As a
result, if two responses are decoded at the same time, it will generate
exceptions.

Issue-ID: POLICY-2556
Change-Id: I5e81d5f3c39b9ba321c146dc6f4f73e558aaca3e
Signed-off-by: Jim Hahn <jrh3@att.com>
models-interactions/model-impl/aai/src/main/java/org/onap/policy/aai/AaiCqResponse.java
models-interactions/model-impl/aai/src/main/java/org/onap/policy/aai/AaiManager.java
models-interactions/model-impl/aai/src/test/java/org/onap/policy/aai/AaiCqResponseTest.java
models-interactions/model-impl/aai/src/test/java/org/onap/policy/aai/util/AaiExceptionTest.java