You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Loyal-Young (via GitHub)" <gi...@apache.org> on 2026/10/20 07:48:33 UTC
[I] [Bug] Mock instance creation accepts duplicate names [rocketmq-dashboard]
Loyal-Young opened a new issue, #7236:
URL: https://github.com/apache/rocketmq-dashboard/issues/7236
## Problem
In Mock mode, creating an instance with a name already in the inventory appends a second row with the same name. The real `InstanceService.createInstance` calls `requireUniqueInstanceName` and rejects that request with `Instance name already exists: <name>`. Instance capabilities, updates, and deletes in the web Mock store look up rows by name, so accepting the duplicate also makes those operations ambiguous.
## Reproduction
1. Create a Mock instance with the name of an existing instance, for example `instance-direct-1`, and a different endpoint.
2. `createInstance` resolves and `listInstances` now contains two rows with that name. A name padded with spaces also bypasses a simple exact-name comparison.
## Expected
The Mock create rejects a normalized duplicate name and leaves the inventory unchanged, matching the backend's uniqueness contract. This is separate from the blank-name and endpoint validation in #6824 / #6825.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Mock instance creation accepts duplicate names [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #7236: [Bug] Mock instance creation accepts duplicate names
URL: https://github.com/apache/rocketmq-dashboard/issues/7236
--
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: [I] [Bug] Mock instance creation accepts duplicate names [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #7236:
URL: https://github.com/apache/rocketmq-dashboard/issues/7236#issuecomment-6417065832
Resolved by #7237 (merged into rocketmq-studio as 64c412bc7).
--
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