You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andrew McDonnell (JIRA)" <ji...@apache.org> on 2012/07/16 21:54:34 UTC
[jira] [Created] (AMQ-3932) receiveNoWait hangs when broker is
down, using failover and prefetch=0
Andrew McDonnell created AMQ-3932:
-------------------------------------
Summary: receiveNoWait hangs when broker is down, using failover and prefetch=0
Key: AMQ-3932
URL: https://issues.apache.org/jira/browse/AMQ-3932
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.6.0
Reporter: Andrew McDonnell
I have a connection set up using failover and queuePrefetch=0. I create a consumer, stop the broker, and call receiveNoWait.
I would expect this to return/throw immediately; instead it hangs. Without failover or with a non-zero prefetch it works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (AMQ-3932) receiveNoWait hangs when broker is
down, using failover and prefetch=0
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish reassigned AMQ-3932:
---------------------------------
Assignee: Timothy Bish
> receiveNoWait hangs when broker is down, using failover and prefetch=0
> ----------------------------------------------------------------------
>
> Key: AMQ-3932
> URL: https://issues.apache.org/jira/browse/AMQ-3932
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.6.0
> Reporter: Andrew McDonnell
> Assignee: Timothy Bish
> Attachments: AMQ3932Test.java
>
>
> I have a connection set up using failover and queuePrefetch=0. I create a consumer, stop the broker, and call receiveNoWait.
> I would expect this to return/throw immediately; instead it hangs. Without failover or with a non-zero prefetch it works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQ-3932) receiveNoWait hangs when broker is
down, using failover and prefetch=0
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQ-3932.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.7.0
Fixed in trunk.
> receiveNoWait hangs when broker is down, using failover and prefetch=0
> ----------------------------------------------------------------------
>
> Key: AMQ-3932
> URL: https://issues.apache.org/jira/browse/AMQ-3932
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.6.0
> Reporter: Andrew McDonnell
> Assignee: Timothy Bish
> Fix For: 5.7.0
>
> Attachments: AMQ3932Test.java
>
>
> I have a connection set up using failover and queuePrefetch=0. I create a consumer, stop the broker, and call receiveNoWait.
> I would expect this to return/throw immediately; instead it hangs. Without failover or with a non-zero prefetch it works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQ-3932) receiveNoWait hangs when broker is
down, using failover and prefetch=0
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418264#comment-13418264 ]
Timothy Bish commented on AMQ-3932:
-----------------------------------
It seems valid that in the case where the transport is not connected the receiveNoWait and the timed receive as well should just return null to indicate that there's not currently a message available since in the timed case you could end up waiting much longer than the intended time otherwise.
> receiveNoWait hangs when broker is down, using failover and prefetch=0
> ----------------------------------------------------------------------
>
> Key: AMQ-3932
> URL: https://issues.apache.org/jira/browse/AMQ-3932
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.6.0
> Reporter: Andrew McDonnell
> Assignee: Timothy Bish
> Attachments: AMQ3932Test.java
>
>
> I have a connection set up using failover and queuePrefetch=0. I create a consumer, stop the broker, and call receiveNoWait.
> I would expect this to return/throw immediately; instead it hangs. Without failover or with a non-zero prefetch it works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AMQ-3932) receiveNoWait hangs when broker is
down, using failover and prefetch=0
Posted by "Andrew McDonnell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McDonnell updated AMQ-3932:
----------------------------------
Attachment: AMQ3932Test.java
Attaching test case, heavily based on test from AMQ-2446.
> receiveNoWait hangs when broker is down, using failover and prefetch=0
> ----------------------------------------------------------------------
>
> Key: AMQ-3932
> URL: https://issues.apache.org/jira/browse/AMQ-3932
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.6.0
> Reporter: Andrew McDonnell
> Attachments: AMQ3932Test.java
>
>
> I have a connection set up using failover and queuePrefetch=0. I create a consumer, stop the broker, and call receiveNoWait.
> I would expect this to return/throw immediately; instead it hangs. Without failover or with a non-zero prefetch it works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira