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

   ## Description
   
   Deleting a Tencent Cloud RocketMQ 5.x instance from Studio always fails 
before the repository delete is reached.
   
   `InstanceService.deleteInstance` checks both topic and consumer-group 
counts. Tencent topic counting is implemented, but 
`TencentInstanceProvider.countGroups` still throws 
`UnsupportedOperationException`, so even an instance with zero Topics receives 
HTTP 501 instead of being removable.
   
   Tencent Cloud's official `DescribeConsumerGroupList` API already returns 
`TotalCount` and accepts `InstanceId`, `Offset`, and `Limit`:
   
   https://cloud.tencent.com/document/api/1493/101535
   
   ## Expected behavior
   
   Implement the cheap Tencent consumer-group count path by requesting the 
first list entry and returning the documented `TotalCount`.
   
   The implementation should:
   
   - bind the request to the selected cloud instance;
   - use `Offset=0` and a minimal `Limit`;
   - return zero for a null/absent count;
   - reject counts outside Studio's integer count model instead of silently 
overflowing;
   - include regression tests for the request mapping, null count, and overflow;
   - leave full Tencent consumer-group management out of scope.
   
   This restores instance list counts and allows the existing delete guard to 
distinguish empty Tencent instances from instances that still contain consumer 
groups.
   


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