Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-3309

Events are being triggered prior to the db commit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Montreal Release
    • Istanbul Release

      TLDR

      Generation of the Dmaap events is happening right before committing the transaction. But, it has to happen after committing the transaction.

      At present, generating events and sending notification events are tightly coupled within the "process" method of "HttpEntry.java" class in aai-core. The code has to be refactored to make them loosely coupled and in turn to ensure that generation of events and sending notification events happen only after the present transaction is committed to data store (JanusGraph / Cassandra).

      Refer to the discussion happened between 2:15 to 10:02 in the mp4 attached to the meeting notes.

      https://wiki.onap.org/display/DW/2021-03-30+AAI+Developers+Meeting
       

            Unassigned Unassigned
            sureshcharan.lf sureshcharan.lf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: