tju-yxq opened a new issue, #2675: URL: https://github.com/apache/rocketmq-dashboard/issues/2675
## Problem `POST /api/instances/import-cloud` walks every region and instance for a selected cloud credential. The service only handles `BusinessException`. A runtime failure from a catalog response, a cloud instance detail lookup, or instance persistence escapes the loop. When that happens, the import returns 500 and stops processing. Instances already imported remain in the database, but the caller receives no summary; later regions and instances are never attempted. The method contract says per-instance failures are collected, so this is surprising during a best-effort import. ## Expected behavior Keep processing after a failure that belongs to one region or instance. Return a normal import summary with the successful count and bounded, readable failure details. Request validation errors and JVM `Error`s should keep their current behavior, and duplicate-name skips should remain unchanged. ## Verification Add service tests for: - a runtime failure while listing one region and a later region still being scanned; - a runtime failure while importing one cloud instance and a later instance still being attempted; - null or malformed catalog responses and bounded failure details; - the returned counts and audit entry. -- 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]
