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 "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/05/29 03:22:00 UTC

[jira] [Created] (JAMES-3592) Maildir tests (Unit and MPT) are not representative of Spring product

Benoit Tellier created JAMES-3592:
-------------------------------------

             Summary: Maildir tests (Unit and MPT) are not representative of Spring product
                 Key: JAMES-3592
                 URL: https://issues.apache.org/jira/browse/JAMES-3592
             Project: James Server
          Issue Type: New Feature
          Components: mailbox
    Affects Versions: 3.6.0
            Reporter: Benoit Tellier
             Fix For: 3.7.0


While investigating a dead-lock in https://github.com/linagora/james-project/pull/4322 I realized the following:

    Spring relies on a distinct JVM path locker for the maildir store,
    distinct from the mailbox API level one.
    
    Only tests enforces the use of a common path locker, which do not
    reflect production usage.
    
    Note that using a single pathLocker leads to deadlocks as acquiring
    the lock at the maildir level is sometime done with a lock already acquired
    at the mailbox level.

Fixed a part of https://github.com/linagora/james-project/pull/4322



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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