james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Charles (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MAILBOX-210) A data race is possible with Cassandra UID generation
Date Sun, 08 Mar 2015 14:46:38 GMT

     [ https://issues.apache.org/jira/browse/MAILBOX-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Eric Charles resolved MAILBOX-210.
       Resolution: Fixed
    Fix Version/s: 0.6
         Assignee: Eric Charles

Patch committed. Thx Benoit.

> 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
>            Assignee: Eric Charles
>             Fix For: 0.6
>         Attachments: fix_cassandra_uid_provider.patch
> 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

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

View raw message