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

[Bug] Shared topic subscription with wildecard #1774

Open
toniocrq opened this issue Oct 14, 2024 · 1 comment
Open

[Bug] Shared topic subscription with wildecard #1774

toniocrq opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working discussion This issues and pr are worth discussing
Milestone

Comments

@toniocrq
Copy link

What did I do

I need to manage a shared subscription topic to handle two different flows
The topic is +/+/GICS/CMD/FEEDBACK/#
and the 2 subscriptions are:

  1. $share/usem-group-tmp/+/+/GICS/CMD/FEEDBACK/#
  2. $share/usem-group/+/+/GICS/CMD/FEEDBACK/#

What happened

It happen that every time a try on mqttX client to send a message on topic LO201/TEST/GICS/CMD/FEEDBACK/TEST
sometimes they both receive the message(correct) and sometime only 1 sub receive the message twice (that's the problem).
While if try to simplify the topic name i have no problem, both receive the same message and i don't see any problem

Environment

I discovered this problem within k8s cluster and i replied the problem on my local machine(W11) using mqttx

@toniocrq toniocrq added the bug Something isn't working label Oct 14, 2024
@github-project-automation github-project-automation bot moved this to Backlog in MQTTX Oct 14, 2024
@ysfscream ysfscream self-assigned this Oct 17, 2024
@ysfscream ysfscream modified the milestones: v1.11.0, v1.11.1 Oct 17, 2024
@ysfscream ysfscream added the discussion This issues and pr are worth discussing label Oct 23, 2024
@ysfscream
Copy link
Member

ysfscream commented Oct 23, 2024

Sorry for replying late. It seems that you have used different group names in the shared subscription. Therefore, in theory, the same message will be received simultaneously. Does this meet your expectation? I tested it. According to the information you provided, I sent 28 messages at the same time. Two different subscription clients received the messages. I am using EMQX. I am not sure what your MQTT Broker is? Is it related to the MQTT Broker? Or what's your MQTTX version?

image image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discussion This issues and pr are worth discussing
Projects
Status: Backlog
Development

No branches or pull requests

2 participants