Aias00 opened a new pull request, #2366: URL: https://github.com/apache/rocketmq-dashboard/pull/2366
Fixes #2353 ## Summary - change persisted Topic and Consumer Group identity from `(cluster_id, name)` to `(cluster_id, instance_id, name)` - scope Apache metadata reads, writes, deletes, and instance resource counts by persisted `instance_id` - add an idempotent MySQL upgrade script for existing deployments ## Migration / dedupe policy - normalize legacy `NULL instance_id` rows to the explicit legacy scope `''` - before adding the new unique key, deduplicate exact `(cluster_id, instance_id, name)` collisions by keeping the most recently modified row - when `gmt_modified` ties, keep the row with the larger `id` ## Verification - `JAVA_HOME=$(/usr/libexec/java_home -v 21) mvn -Dtest=RocketMQAdminClientImplTest,RocketMQMetadataProviderTest,ApacheInstanceProviderTest,MybatisPlusInstanceRepositoryTest test` - `git diff --check` -- 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]
