Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #8265] Implement Batch Creation of Topics in RocketMQ Admin #8267

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

guyinyou
Copy link
Contributor

@guyinyou guyinyou commented Jun 6, 2024

Which Issue(s) This PR Fixes

Fixes #8265

Brief Description

How Did You Test This Change?

@lizhimins lizhimins changed the title [#ISSUE 8265] Implement Batch Creation of Topics in RocketMQ Admin [ISSUE #8265] Implement Batch Creation of Topics in RocketMQ Admin Jun 6, 2024
@fuyou001 fuyou001 merged commit 4be8fd4 into apache:develop Jun 7, 2024
9 of 10 checks passed
LOGGER.info("Broker receive request to update or create topic={}, but topicConfig has no changes , so idempotent, caller address={}",
topic, RemotingHelper.parseChannelRemoteAddr(ctx.channel()));
response.setCode(ResponseCode.SUCCESS);
return response;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should continue here instead return, otherwise we will left the other topics uncreated after return success.

String topic = topicConfig.getTopicName();
TopicValidator.ValidateTopicResult result = TopicValidator.validateTopic(topic);
if (!result.isValid()) {
response.setCode(ResponseCode.SYSTEM_ERROR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SYSTEM_ERROR has been used in many different server error cases, maybe we should add some more code to indicate the client error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Implement Batch Creation of Topics in RocketMQ Admin
4 participants