You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2016/10/26 20:58:58 UTC

[jira] [Closed] (AMQ-6480) receiveNoWait hangs when broker is back up, using failover and prefetch=0

     [ https://issues.apache.org/jira/browse/AMQ-6480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish closed AMQ-6480.
-----------------------------
    Resolution: Not A Problem

receiveNotWait working as expected on latest release, some fixes for similar issue in AMQ-3932 where it hung on prefetch zero cases

> receiveNoWait hangs when broker is back up, using failover and prefetch=0
> -------------------------------------------------------------------------
>
>                 Key: AMQ-6480
>                 URL: https://issues.apache.org/jira/browse/AMQ-6480
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.7.0
>            Reporter: Sergiu Pantiru
>
> I have a consumer that keeps a message(session opened) for 1 minute and than acknowledges it and commits the session. The thread is finished once the session is closed. 
> If ActiveMq dies before message is ack, i still close the session/consumer to free the thread.
> When ActiveMq is back up, a new thread (new consumer/session) tries to receiveNoWait and this call blocks because it does not receive any message. 
> There is a poison ack sent before it hangs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)