Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-2370

Kafka Audit Service : CorrelationUUID from request is not matching the correct response in Kafka

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Guilin Release
    • Guilin Release
    • cds

      When Audit Service is enabled the CorrelationUUID specified in the request match the wrong response. See example below :

       

      ## REQUEST
      {"correlationUUID":"3b78ecef-b7cd-47f3-a948-cf15a972dfc8","commonHeader":{"timestamp":"2020-05-11T15:49:10.589Z","originatorId":"System","requestId":"50","subRequestId":"50-50"},"actionIdentifiers":{"blueprintName":"hello-world-bp-ff","blueprintVersion":"1.0.0","actionName":"helloworld","mode":"sync"},"payload":{"helloworld-request":{"helloworld-properties":{"secret":"****REDACTED****"}}}}
      
      ## RESPONSE
      {"correlationUUID":"3b78ecef-b7cd-47f3-a948-cf15a972dfc8","commonHeader":{"timestamp":"2020-05-11T15:49:10.589Z","originatorId":"System","requestId":"48","subRequestId":"48-48"},"actionIdentifiers":{"blueprintName":"hello-world-bp-ff","blueprintVersion":"1.0.0","actionName":"helloworld","mode":"sync"},"status":{"code":200,"eventType":"EVENT_COMPONENT_EXECUTED","timestamp":"2020-05-11T15:49:10.607Z","message":"success"},"payload":{"helloworld-response":{"meshed-template":{"helloworld":"Hello Word!\n"}}}}
      

      You can notice that the "correlationUUID" are matching but the "requestID" and "subRequestId" don't.

       

       

      How to reproduce :

         1. Enable the Kafka Audit Service in the application.properties

      blueprintsprocessor.messageproducer.self-service-api.audit.kafkaEnable=true
      

         2. Publish the attached CBA -> cba-enrich.zip
         3. Run the attached script -> bench.sh
         4. ou should get requests and responses as shown in the example above in your Kafka topics configured for the Audit Service

        1. bench.sh
          0.9 kB
        2. cba-enrich.zip
          5 kB

            jfontaine49 jfontaine49
            jfontaine49 jfontaine49
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: