During resource resolution there occurs from time to time a ConcurrentModificationExc... 51/136951/1
authorFrank Kimmlingen <frank.kimmlingen@telekom.de>
Tue, 9 Jan 2024 15:01:14 +0000 (16:01 +0100)
committerFrank Kimmlingen <frank.kimmlingen@telekom.de>
Tue, 9 Jan 2024 15:01:14 +0000 (16:01 +0100)
commit5b924a33f2b7cd936aab934d706c8f735f7570d6
tree4b97bf090ed429d40e6f5e27fad60296f1bad07e
parent72ae79d15d6ebc9a06202733b2fd999fb30ea048
During resource resolution there occurs from time to time a ConcurrentModificationException. This leads to errors, which are hard to find.

Simple solution is to use a ConcurrentHashMap instead, because this class is thread safe.

Issue-ID: CCSDK-3978
Signed-off-by: Frank Kimmlingen <frank.kimmlingen@telekom.de>
Change-Id: I68de3bc24d93a784964bc4b58caa2aeebf250e33
ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceAssignmentRuntimeService.kt
ms/blueprintsprocessor/functions/resource-resolution/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtilsTest.kt