You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "X-LightYear (via GitHub)" <gi...@apache.org> on 2026/10/20 03:06:11 UTC

[I] [Studio][Bug] LiteTopic list counts clients without the selected parent topic [rocketmq-dashboard]

X-LightYear opened a new issue, #7202:
URL: https://github.com/apache/rocketmq-dashboard/issues/7202

   ## Problem
   
   The LiteTopic list summary counts every connection returned for a consumer group, even when that client has no LiteTopic under the selected parent topic.
   
   ## Reproduction
   
   On `rocketmq-studio` commit `127c47b06a268cc74224d5f34c56ec7c36ac0d55`, a deterministic provider fixture with one LiteTopic parent and two clients in the same group was used:
   
   - client `c1` reports one LiteTopic under the parent;
   - client `c2` reports zero LiteTopics under the parent.
   
   `RocketMQLiteTopicProvider.listLiteTopics` returned `consumerCount=2` and included both clients in `sessionIds`.
   
   ## Expected behavior
   
   Only clients with a LiteTopic under the parent should contribute to `consumerCount` and `sessionIds`.
   
   ## Fix
   
   Validate the parent-scoped client information before adding a client to the summary. Clients with no LiteTopic under that parent are skipped, while clients with a valid subscription but no last-access timestamp remain counted.
   
   ## Regression evidence
   
   `RocketMQLiteTopicProviderTest.listLiteTopicsShouldCountOnlyClientsSubscribedToTheParentTopicTest` failed before the fix with `expected: 1 but was: 2` and passes after the fix.
   
   The focused suite passes: 28 tests, 0 failures.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org