You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <ji...@apache.org> on 2018/08/16 03:16:00 UTC

[jira] [Created] (MAILBOX-349) Maildir mailbox cache is not thread safe

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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org