youngkermit8-coder opened a new pull request, #1594: URL: https://github.com/apache/rocketmq-dashboard/pull/1594
## Summary - query Tencent Cloud's `DescribeConsumerGroupList` when Studio needs an instance consumer-group count - use the documented `TotalCount` without downloading every group - return zero for an absent response/count and reject negative or overflowing counts ## Root cause `InstanceService.deleteInstance` checks both Topic and consumer-group counts before removing an instance binding. Tencent Topic counting is implemented, but `TencentInstanceProvider.countGroups` always threw `UnsupportedOperationException`. As a result, every Tencent instance delete attempt stopped with HTTP 501, including instances with no managed resources. Tencent Cloud documents `InstanceId`, `Offset`, `Limit`, and `TotalCount` on the RocketMQ 5.x consumer-group list API: https://cloud.tencent.com/document/api/1493/101535 ## Impact Studio can now display the Tencent consumer-group count and apply its existing instance deletion guard. Empty Tencent instances can proceed through deletion, while instances with consumer groups remain protected by the non-zero count. Full Tencent consumer-group management remains out of scope. ## Verification ```text mvn -Dtest=TencentInstanceProviderTest clean package Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 Checkstyle violations: 0 BUILD SUCCESS ``` The regression coverage verifies request binding and pagination parameters, documented total-count mapping, null response/count handling, negative counts, and integer overflow. Closes #1592 -- 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]
