Kafka Audit Service : CorrelationUUID from request is not matching the correct respon... 91/107491/1
authorJulien Fontaine <julien.fontaine@bell.ca>
Mon, 11 May 2020 18:38:01 +0000 (14:38 -0400)
committerJulien Fontaine <julien.fontaine@bell.ca>
Mon, 11 May 2020 18:43:56 +0000 (14:43 -0400)
commit1f3bc0ca592a7f4245b0f70bfdcf63222dbf6106
treebbc3591875bbf38613b5477bec66ff5271a6d60d
parent16ced660a671dea28fa56ffa860651d78ebb4501
Kafka Audit Service : CorrelationUUID from request is not matching the correct response in Kafka

Moved out CorrelationUUID linking between the request and the response from the Kafka Audit Service to the ExecutionServiceHandler.
This prevents the race condition happening when several ExecutionServiceOutputs try to set the CorrelationUUID related to their ExecutionServiceInput.

Issue-ID: CCSDK-2370
Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca>
Change-Id: I0c5934d4486961fbfcb34fd2d2492cd843350025
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceHandler.kt
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/KafkaPublishAuditService.kt
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/NoPublishAuditService.kt
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/PublishAuditService.kt
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/test/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceHandlerTest.kt