You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Fix stale wildcardGroupMap entries caused by incorrect parsing during LiteTopic wildcard unregistration #10253
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
macos
RocketMQ version
5.5.0
JDK Version
jdk17
Describe the Bug
LiteTopic 的 wildcard group 在删除注册时,会使用 StringUtils.split(lmqName) 解析 topic@group 形式的占位键。由于该方法默认按空白字符分割,而不是按 @ 分割,导致解析结果长度不为 2,删除逻辑提前 return,wildcardGroupMap 中的 wildcard group 元数据永远无法被清理。长期运行后会残留失效 group,带来额外的 dispatch 扫描开销和潜在的内存增长问题。
During LiteTopic wildcard group unregistration, the code uses StringUtils.split(lmqName) to parse the placeholder key in the form of topic@group. Since this method splits on whitespace by default instead of @, the parsed result does not contain two parts, so the cleanup logic returns early and the wildcard group metadata remains in wildcardGroupMap. Over time, this can leave stale groups behind, causing unnecessary dispatch scans and potential memory growth.
Activity
[ISSUE #10253] Fix stale wildcardGroupMap entries caused by incorrect…