Aias00 opened a new issue, #1235:
URL: https://github.com/apache/rocketmq-dashboard/issues/1235

   ## Problem
   
   `InstanceService.deleteInstance` checks `topicCount` and 
`consumerGroupCount` from the persisted `InstanceVO`. Those values are 
populated only while listing instances, so a direct delete can observe stale 
zero values and remove an instance that still owns local Topic or Consumer 
Group metadata.
   
   ## Expected behavior
   
   Before deletion, resolve the current managed-resource counts from the 
authoritative repository/provider and reject the request with HTTP 409 when 
either count is non-zero.
   
   ## Scope
   
   Track 1 control-plane instance lifecycle. Keep the change limited to the 
instance service/repository contract and regression tests.
   
   ## Evidence
   
   - 
`server/src/main/java/org/apache/rocketmq/studio/instance/InstanceService.java:200`
   - 
`server/src/main/java/org/apache/rocketmq/studio/instance/InstanceService.java:207`


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