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 "ASF GitHub Bot (JIRA)" <se...@james.apache.org> on 2018/07/08 16:54:00 UTC

[jira] [Commented] (JAMES-2295) JMS mailqueue deadlock when a single thread issue several consume

    [ https://issues.apache.org/jira/browse/JAMES-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16536340#comment-16536340 ] 

ASF GitHub Bot commented on JAMES-2295:
---------------------------------------

GitHub user nstdio opened a pull request:

    https://github.com/apache/james-project/pull/127

    JAMES-2295 JMS mailqueue deadlock.

    This issue is related to ActiveMQ prefetch mechanics. Now new give ability to configure prefetch size for all types of MailQueues.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nstdio/james-project JAMES-2295

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/james-project/pull/127.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #127
    
----
commit ef4759d706b5b04a777dc04572a5bae1b58f2162
Author: Edgar Asatryan <ns...@...>
Date:   2018-07-08T15:48:49Z

    JAMES-2295 JMS mailqueue deadlock when a single thread issue several consume.
    
    This issue is related to ActiveMQ prefetch mechanics. Now new give ability to configure prefetch size for all types of MailQueues.

----


> JMS mailqueue deadlock when a single thread issue several consume
> -----------------------------------------------------------------
>
>                 Key: JAMES-2295
>                 URL: https://issues.apache.org/jira/browse/JAMES-2295
>             Project: James Server
>          Issue Type: Bug
>          Components: Queue
>    Affects Versions: 3.0.0, master, 3.0.1
>            Reporter: Tellier Benoit
>            Priority: Major
>              Labels: bug
>
> This will lead to a dead lock:
> {code:java}
>         MailQueue.MailQueueItem mailQueueItem1 = getMailQueue().deQueue();
>         MailQueue.MailQueueItem mailQueueItem2 = getMailQueue().deQueue();
>         mailQueueItem1.done(true);
>         mailQueueItem2.done(true);
> {code}



--
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