X-LightYear opened a new pull request, #7203:
URL: https://github.com/apache/rocketmq-dashboard/pull/7203

   ## Summary
   
   - count only clients subscribed to the selected LiteTopic parent in list 
summaries
   - keep unrelated clients in the same consumer group out of `consumerCount` 
and `sessionIds`
   - add deterministic provider regression coverage
   
   ## Root cause
   
   `RocketMQLiteTopicProvider.buildSummary` counted every connection returned 
for a consumer group before checking the parent-scoped `getLiteClientInfo` 
result. A group can contain clients that are not subscribed to the selected 
LiteTopic parent.
   
   ## Fix
   
   Resolve the parent-scoped client information first and add a client to the 
summary only when it reports at least one LiteTopic under that parent. A valid 
subscription with an unavailable last-access timestamp remains counted.
   
   ## Testing
   
   - `mvn -B -ntp -Dmaven.compiler.proc=full 
-Dtest=RocketMQLiteTopicProviderTest test`
   - pre-fix regression: expected `consumerCount=1`, actual `2`
   - post-fix: 28 tests passed
   
   Fixes #7202
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to