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

wildcarded mqtt topic not receiving messages #9769

Closed
ddlenz opened this issue Jun 4, 2020 · 5 comments
Closed

wildcarded mqtt topic not receiving messages #9769

ddlenz opened this issue Jun 4, 2020 · 5 comments
Labels
kind/bug Something isn't working
Milestone

Comments

@ddlenz
Copy link

ddlenz commented Jun 4, 2020

Describe the bug
An MQTT message consumer using 1.5.0.Final does not receive messages when configured with a wildcarded topic, e.g. mp.messaging.incoming.topic-all.topic=topic/+
Works as expected with 1.4.2.Final.

Expected behavior
Output from reproduce case using 1.4.2.Final:

Sending topic one 
Sending topic two 
Receiving message: 1 
Receiving message: 2

Actual behavior
Output from reproduce case using 1.5.0.Final:

Sending topic one 
Sending topic two 

To Reproduce

  1. Unzip mqtt-wildcard-issue.zip
  2. docker-compose up
  3. mvn quarkus:dev

Configuration

# MQTT sink topic one
mp.messaging.outgoing.topic-one.type=smallrye-mqtt
mp.messaging.outgoing.topic-one.topic=topic/one
mp.messaging.outgoing.topic-one.host=localhost
mp.messaging.outgoing.topic-one.port=1883
mp.messaging.outgoing.topic-one.auto-generated-client-id=true

# MQTT sink topic two
mp.messaging.outgoing.topic-two.type=smallrye-mqtt
mp.messaging.outgoing.topic-two.topic=topic/two
mp.messaging.outgoing.topic-two.host=localhost
mp.messaging.outgoing.topic-two.port=1883
mp.messaging.outgoing.topic-two.auto-generated-client-id=true

# MQTT source topic
mp.messaging.incoming.topic-all.type=smallrye-mqtt
mp.messaging.incoming.topic-all.topic=topic/+
mp.messaging.incoming.topic-all.host=localhost
mp.messaging.incoming.topic-all.port=1883
mp.messaging.incoming.topic-all.auto-generated-client-id=true

Environment (please complete the following information):

  • Output of uname -a or ver: Darwin NEON-08015 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
  • Output of java -version:
    openjdk version "1.8.0_242"
    OpenJDK Runtime Environment (build 1.8.0_242-b06)
    OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 (build 25.242-b06-jvmci-20.0-b02, mixed mode)
  • Quarkus version or git rev: 1.5.0.Final
  • Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3
@ddlenz ddlenz added the kind/bug Something isn't working label Jun 4, 2020
@ddlenz ddlenz changed the title mp.messaging.incoming.[channel].topic wildcarded config not receiving messages with smallrye-mqtt wildcarded mqtt topic not receiving messages Jun 4, 2020
@buehren
Copy link

buehren commented Jun 4, 2020

Same problem here!

Did not see this issue before - so I created another project for reproducing the error:
https://github.com/buehren/quarkus-1.5.0-mqtt-wildcard-problem

You can observe the following behaviours:

  1. Quarkus 1.4.2-Final works with wildcard in MQTT subscription
  2. Quarkus 1.5.0-Final does NOT work with wildcard (ERROR)
  3. Quarkus 1.5.0-Final works without wildcard

@buehren
Copy link

buehren commented Jun 15, 2020

It still fails with Quarkus 1.5.1-Final.

To reproduce: https://github.com/buehren/quarkus-1.5.0-mqtt-wildcard-problem

@buehren
Copy link

buehren commented Jun 19, 2020

It still fails with Quarkus 1.5.2-Final.

To reproduce: https://github.com/buehren/quarkus-1.5.0-mqtt-wildcard-problem (updated to 1.5.2)

@buehren
Copy link

buehren commented Jun 20, 2020

It seems that this bug was introduced in smallrye-reactive-messaging 2.0.3. It is planned to be fixed in 2.2.0: smallrye/smallrye-reactive-messaging#615

@cescoffier
Copy link
Member

Has been fixed in Quarkus 1.6.

@cescoffier cescoffier added this to the 1.6.0.Final milestone Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants