Uploaded image for project: 'James Mailbox'
  1. James Mailbox
  2. MAILBOX-210

A data race is possible with Cassandra UID generation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • None
    • None

    Description

      Nothing as critical as MAILBOX-209 but there is a race condition if the UID current value is null.

      If so we set the value to one without checking if the value was updated.

      This may cause duplicated UID for UID 1, and possible message loss ( as the primary key is the pair of the mailbox ID and the message UID ). We definitly don't want that to happen.

      Solving this bug is easy : we should also use conditionnal updates when UID is equal to 0.

      Attachments

        1. fix_cassandra_uid_provider.patch
          3 kB
          Benoit Tellier

        Activity

          People

            eric@apache.org Eric Charles
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: