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/09/08 07:42:58 UTC
[PR] [ISSUE #4141] fix(mock): scope Topic mutations by instance [rocketmq-dashboard]
Aias00 opened a new pull request, #4142:
URL: https://github.com/apache/rocketmq-dashboard/pull/4142
## Summary
- align mock Topic identity with the persisted `(cluster_id, instance_id, name)` model
- allow the same Topic name and cluster in different mock instances
- scope mock update and delete operations to the supplied `instanceId`
- add regression coverage for cross-instance create, update, and delete behavior
## Scope
This changes only the frontend mock service and its focused tests. The real backend API and database schema are unchanged. Calls that omit `instanceId` keep the previous fallback behavior.
## Verification
- `npm test -- --run src/services/topicService.test.ts src/services/topicService.batchDelete.test.ts src/pages/instance/__tests__/TopicPage.test.tsx` — 34 tests passed
- `npm run lint` — 0 errors, 10 existing warnings
- `npm run build`
- `git diff --check`
Closes #4141
--
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] [ISSUE #4141] fix(mock): scope Topic mutations by instance [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #4142:
URL: https://github.com/apache/rocketmq-dashboard/pull/4142#issuecomment-5679161795
Thanks for the contribution. We're closing this one on design grounds rather than implementation quality.
Per the Studio instance model spec (`docs/studio-instance-model-spec.md`), topic and group names are **globally unique within a single Studio deployment** — the unique key is on `name`, not on `(cluster, instance, name)`. Scoping mock topic mutations by `instanceId` so that two instances can hold same-name topics encodes the opposite assumption into the mock layer, which then diverges from the real backend contract the mock is supposed to mirror. A mock that permits a state the server rejects will hide exactly the class of bug it should surface.
If you're hitting cross-instance state bleed in mock mode, the right fix is to make the mock enforce the same global-uniqueness rule the server does (and reject the second create), not to partition it per instance. Happy to review a PR in that direction.
Note also that separate Studio deployments are the supported answer for same-name resources across daily/staging/production.
--
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] [ISSUE #4141] fix(mock): scope Topic mutations by instance [rocketmq-dashboard]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 commented on PR #4142:
URL: https://github.com/apache/rocketmq-dashboard/pull/4142#issuecomment-5680215748
Reworked from the latest `rocketmq-studio` branch in the maintainer-recommended direction. The per-instance Topic identity changes are gone; mock creation now enforces deployment-wide name uniqueness. The focused rework is resubmitted as #4338 against the updated #4141 scope.
--
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] [ISSUE #4141] fix(mock): scope Topic mutations by instance [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #4142: [ISSUE #4141] fix(mock): scope Topic mutations by instance
URL: https://github.com/apache/rocketmq-dashboard/pull/4142
--
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