You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "youngkermit8-coder (via GitHub)" <gi...@apache.org> on 2026/08/11 05:39:47 UTC

[I] [Studio][Performance] Count Aliyun resources without full pagination [rocketmq-dashboard]

youngkermit8-coder opened a new issue, #1608:
URL: https://github.com/apache/rocketmq-dashboard/issues/1608

   ## Problem
   
   `AliyunInstanceProvider.countTopics` delegates to `listTopics(...).size()` and `countGroups` delegates to `listConsumerGroups(...).size()`.
   
   The instance list calls both methods for every Aliyun instance. Consequently, displaying the list (and checking whether an instance can be deleted) fetches and maps every page of both resources only to obtain two counts. The Aliyun RocketMQ 5.x responses already expose `Data.totalCount`, so the work grows with the number of resources and can consume many OpenAPI requests per page load.
   
   ## Reproduction
   
   On the current `rocketmq-studio` branch:
   
   1. Mock `ListTopicsResponseBody.Data` with one returned row and `totalCount = 321`.
   2. Call `countTopics(instanceId)`.
   3. The method returns the mapped row count (`1`) instead of the response total (`321`) and requests the normal 100-row listing page.
   4. The same behavior occurs for consumer groups (`1` returned with `totalCount = 654`).
   
   ## Expected behavior
   
   Each count should issue one minimal first-page request (`pageNumber = 1`, `pageSize = 1`) and return the API's `totalCount`, without fetching or mapping every resource. Null/malformed response handling should remain safe.
   
   ## Scope
   
   This applies only to Aliyun resource counts. The existing paginated list methods should remain unchanged.


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


Re: [I] [Studio][Performance] Count Aliyun resources without full pagination [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #1608: [Studio][Performance] Count Aliyun resources without full pagination
URL: https://github.com/apache/rocketmq-dashboard/issues/1608


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

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


Re: [I] [Studio][Performance] Count Aliyun resources without full pagination [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1608:
URL: https://github.com/apache/rocketmq-dashboard/issues/1608#issuecomment-5723053811

   This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.


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

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