[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-dev
Subject:    [jira] [Created] (MAILBOX-210) A data race is possible with Cassandra UID generation
From:       "Tellier Benoit (JIRA)" <jira () apache ! org>
Date:       2015-01-21 9:11:34
Message-ID: JIRA.12768929.1421831442000.132659.1421831494825 () Atlassian ! JIRA
[Download RAW message or body]

Tellier Benoit created MAILBOX-210:
--------------------------------------

             Summary: A data race is possible with Cassandra UID generation
                 Key: MAILBOX-210
                 URL: https://issues.apache.org/jira/browse/MAILBOX-210
             Project: James Mailbox
          Issue Type: Bug
            Reporter: Tellier Benoit


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic