yyqdbngt opened a new pull request, #2218: URL: https://github.com/apache/rocketmq-dashboard/pull/2218
## Summary - reject duplicate `InstanceProvider` registrations for the same vendor - apply the same startup validation to `CloudCatalogProvider` registrations - report stable error messages that identify the conflicting vendor - test normal catalog lookup and both duplicate-registration paths ## Root cause The registry populated `EnumMap` instances with unconditional `put` calls. When multiple Spring beans declared the same vendor, the last injected bean silently won, making provider selection depend on injection order and hiding an invalid application configuration. ## Validation - `mvn -f server/pom.xml -Dtest=InstanceProviderRegistryTest test` — 10 tests passed - Maven validate lifecycle — 0 Checkstyle violations Closes #2213 -- 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]
