Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-1037

Alarms DB add race conditions may cause loss of alarms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Iteration later
    • 1.2
    • Alarms
    • None
    • Bit Sprint 1, Bit Sprint 2

    Description

      We have observed that two alarms may attempt to register a new alarm at the same time. Originally this caused two equal collections to appear in the alarm collection table at the same time. This has now been fixed so the second collection registration will fail, but this will cause the alarm registration to fail. This should be avoided by merging the collection registration and alarm registration into one query.

      // News: 2022-24-11
      A race condition happens as described in the comments. This can be fixed by having the SQL Query ignore if the index exists, resulting in no exception being thrown on duplicate index.

      Attachments

        Activity

          People

            masj Mathias Søby Jensen
            mss Mikis Seth Sørensen (Inactive)
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: