Uploaded image for project: 'mod-inventory'
  1. mod-inventory
  2. MODINV-646

Add logic to skip sending DI_ERROR from mod-inventory in case for duplicates - Lotus Bugfix

    XMLWordPrintable

Details

    • Folijet Sprint 133, Folijet Sprint 134
    • 3
    • Folijet
    • Lotus (R1 2022) Bug Fix
    • Incomplete/missing requirements

    Description

      When importing large files we can observe these error messages:

      Cause:
      Instance has been created in mod-inventory and DI_COMPLETE event sent, after this duplicated event to create instance can be send again to mod-inventory and mod-inventory sends DI_ERROR event with error message that instance already exists to SRM. This DI_ERROR event already has different event id and duplicated record inserted in SRM journal_records table.
      To prevent this needed to not not send DI_ERROR from mod-inventory in case when entity already created in inventory-storage.

      Notes for devs:
      To reproduce it source code in mod-inventory can be modified with invoking CreateInstance/CreateHolding/CreateItem handler twice for testing purposes. Also this can be considered as a scenario for an integration test.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                VRohach Volodymyr Rohach
                Nosko Serhii Nosko
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases