james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-2295) JMS mailqueue deadlock when a single thread issue several consume
Date Wed, 18 Jul 2018 10:20:00 GMT

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

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

Github user nstdio commented on the issue:

    https://github.com/apache/james-project/pull/127
  
    Hi @chibenwa 
    
    I was trying to implement the new version of `ConsumerOptions` that we discussed.
    
    ```java
    interface ConsumerOptions {
        ImmutableMap<String, String> parameters();
    }
    ```
    
    Here is sort of contradiction:
    
    [here](https://github.com/apache/james-project/pull/127/files#diff-57f321ad4650460e153b0e32c690cf79R214)
we should reference the `prefetchSize` size, but we don't know whether underlying JMS implementation
does support that option or not. Is there anything that I get wrong ?


> 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


Mime
View raw message