You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/18 14:39:19 UTC
[PR] fix(metadata): scope persisted topic/group identity by instance [rocketmq-dashboard]
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(metadata): scope persisted topic/group identity by instance [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins merged PR #2366:
URL: https://github.com/apache/rocketmq-dashboard/pull/2366
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org