Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value 0 for --wait does not work with AMQP #247

Open
erwindon opened this issue Mar 11, 2024 · 0 comments
Open

value 0 for --wait does not work with AMQP #247

erwindon opened this issue Mar 11, 2024 · 0 comments

Comments

@erwindon
Copy link
Contributor

Due to a bug in library org.apache.qpid:qpid-amqp-1-0-client-jms:0.32, the value 0 for --wait does not work when using AMQP.
The value 0 is interpreted as no-wait, completely opposite the expected behavior of waiting infinitely.

The bug is already clearly marked in the original source code as a "TODO" change.
see package org.apache.qpid.amqp_1_0.jms.impl, file MessageConsumerImpl.java, line 258.

I see at least 3 solutions for this:

  1. instead, use function receive() (no parameters) when wait=0, that function does not have the above problem; or
  2. fix the bug upstream and later update to the new version of the client library when dependabot warns for it; or
  3. switch to another client library for amqp.

nr 1 is the quickest solution, nr 2 is the best solution.

what is your preference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant