-
Notifications
You must be signed in to change notification settings - Fork 182
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
Mqtt messages are not acknowledged #556
Comments
Thanks for the reproducer! It made the fix so much easier to implement and verify. I've opened a PR with the actual fix. I've tested with QoS 0, 1 and 2. |
Great! Thank you for the fast response ) Looking forward to try the fix ) |
kenfinnigan
added a commit
that referenced
this issue
May 26, 2020
Great! Thanks! Is there a hint when 2.1.0 will arrive? |
cescoffier
added a commit
to cescoffier/quarkus
that referenced
this issue
Jun 16, 2020
Contains fixes for: * smallrye/smallrye-reactive-messaging#577 * smallrye/smallrye-reactive-messaging#556 * smallrye/smallrye-reactive-messaging#555 * smallrye/smallrye-reactive-messaging#471 * smallrye/smallrye-reactive-messaging#491 * quarkusio#9447 * Parts of quarkusio#9263 * quarkusio#8177 * quarkusio#7404 * quarkusio#7580
cescoffier
added a commit
to cescoffier/quarkus
that referenced
this issue
Jun 16, 2020
Contains fixes for: * smallrye/smallrye-reactive-messaging#577 * smallrye/smallrye-reactive-messaging#556 * smallrye/smallrye-reactive-messaging#555 * smallrye/smallrye-reactive-messaging#471 * smallrye/smallrye-reactive-messaging#491 * quarkusio#9447 * Parts of quarkusio#9263 * quarkusio#8177 * quarkusio#7404 * quarkusio#7580
johnaohara
pushed a commit
to johnaohara/quarkus
that referenced
this issue
Jun 29, 2020
Contains fixes for: * smallrye/smallrye-reactive-messaging#577 * smallrye/smallrye-reactive-messaging#556 * smallrye/smallrye-reactive-messaging#555 * smallrye/smallrye-reactive-messaging#471 * smallrye/smallrye-reactive-messaging#491 * quarkusio#9447 * Parts of quarkusio#9263 * quarkusio#8177 * quarkusio#7404 * quarkusio#7580
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that messages sent to MQTT baker with QOS = 2 are not acknowledged - or callback method is not called. On contrast, AMQP messages are acknowledged as expected.
On calling this endpoint
These logs are printed:
While one would expect smth like this:
When using AMQP
These logs are printed:
Debug logs say that QOS = 2 is used
As a consequence trying to
.join()
returned byemitter.send(Payload)
completable future leads to executor's thread infinite awaiting.And message is really sent to MQTT broker - this was checked for VerneMQ, ActiveMQ Artemis and InMemoryConnector. But still with no acknowledge callback called.
Reactive messaging properties:
I've made a demo app which uses both MQTT and AMQP connectors via
send(Payload)
andsend(Message)
emitter's method with tests for each endpoint.just call
All the code can be found here: https://github.com/PaulFrmBrn/mqtt-ack-test
Environment (built & run by
/gradlew quarkusDev
)Quarkus: 1.4.2
SmallRye Reactive Messaging: 2.0.2
OS: macOS Catalina 10.15.3
Java info
Gradle: 6.1
MQTT brokers used (containers)
Thanks in advance.
The text was updated successfully, but these errors were encountered: