apache / apache/rocketmq-externals

[rocketmq-iot-bridge] optimize MQTT client equivalence judgment logic

Open
#847 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4.6k
Forks
3k
Avg merge
2h 33m
Merged PRs (30d)
1

Description

**BUG REPORT**

1. Please describe the issue you observed:
There is a problem with the MQTT client judgment, just use the "clientId" to judge the judgment may be wrong.
- The client mainly contains clientId and ChannelHandlerContext information.
- When two different clients with the same clientId connect and subscribe to the same topic message, one of the clients unsubscribes the topic, which will cause the other client to also be unsubscribed.
- The equivalence of the client connection needs to be judged by combining clientId and ChannelHandlerContext.

2. Please tell us about your environment:
Linux

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the MQTT client equivalence judgment logic in the rocketmq-iot-bridge module and trace how clientId and ChannelHandlerContext are used when subscribing and unsubscribing. Reproduce the same-clientId scenario described in the issue, then verify that unsubscribing one connection no longer affects the other.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.