james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrzej Rusin (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (IMAP-372) Deadlock in AbstractDelegatingMailboxListener under load
Date Tue, 09 Apr 2013 15:08:17 GMT
Andrzej Rusin created IMAP-372:

             Summary: Deadlock in AbstractDelegatingMailboxListener under load
                 Key: IMAP-372
                 URL: https://issues.apache.org/jira/browse/IMAP-372
             Project: James Imap
          Issue Type: Bug
          Components: Mailbox
            Reporter: Andrzej Rusin
            Assignee: Eric Charles

In AbstractDelegatingMailboxListener::event, firing the events inside the synchronized blocks
causes a deadlock involving:

lock on HashMapDelegatingMailboxListener::listeners
(synchronized methods) lock on SelectedMailboxImpl

In my example, these 3 methods got interlocked:

My idea to fix it is basically to take the for loop on mListeners outside the synchronized

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/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