Tellier Benoit created MAILBOX-349:
--------------------------------------

             Summary: Maildir mailbox cache is not thread safe
                 Key: MAILBOX-349
                 URL: https://issues.apache.org/jira/browse/MAILBOX-349
             Project: James Mailbox
          Issue Type: Bug
          Components: maildir
            Reporter: Tellier Benoit


Maildir mailbox cache uses a non-thread-safe list, and concurrent mailbox 
creation can fail even using the JVM path locker.

Failing test: 
DomainUserMaildirMailboxManagerTest>MailboxManagerTest.creatingConcurrentlyMailboxesWithSameParentShouldNotFail:988
 ยป Execution

Note that MailboxId computation is based on the cache size, thus is:

 - non persistent (I don't attend to change this)
 - Subject to data races: two mailboxes might have the same ID
 - And a mailbox can be saved several time, thus generating several ids



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to