tju-yxq opened a new pull request, #2041:
URL: https://github.com/apache/rocketmq-dashboard/pull/2041

   ## Summary
   
   This PR tightens Tencent provider behavior around topic counts and consumer 
pagination using repository-verifiable tests.
   
   Changes:
   - Prefer `DescribeTopicListResponse.TotalCount` in `countTopics` before 
checking returned topic data, so a count-only/empty-data response can still 
report the correct total.
   - Add focused Tencent provider unit tests covering the `Limit=1` topic-count 
request and the empty-data `TotalCount` case.
   - Add a focused pagination edge test for `getTopicConsumers` when 
`SubscriptionCount` is reached on a full page.
   
   ## Verification
   
   ```bash
   cd server
   mvn -DskipTests=false 
"-Dtest=TencentInstanceProviderTest#countTopicsShouldUseTotalCountFromSingleItemRequestTest+countTopicsShouldUseTotalCountEvenWhenDataIsEmptyTest+getTopicConsumersShouldReadEverySubscriptionPageTest+getTopicConsumersShouldStopAfterSubscriptionCountReachedOnFullPageTest"
 test
   ```
   
   Result: `BUILD SUCCESS`; `Tests run: 4, Failures: 0, Errors: 0, Skipped: 0`.
   
   ## Evidence boundary
   
   - Verified by code inspection and mocked unit tests against the Tencent 
OpenAPI client boundary.
   - Not verified with a live Tencent Cloud RocketMQ instance, browser UI, or 
live performance measurements.
   


-- 
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