Repository navigation
[ISSUE #685] In rocketmq-v5-client-spring-boot-starter, configuring multiple topics is not supported. - #731
Merged
Conversation
panzhi33
approved these changes
Jun 16, 2025
RongtongJin
approved these changes
Jun 16, 2025
RockteMQ-AI
reviewed
Aug 5, 2026
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Summary
Fixes the issue where configuring multiple topics via comma-separated string in rocketmq-v5-client-spring-boot-starter was not supported. The fix splits the topic string by comma before passing to setTopics(). Applied in both ExtTemplateResetConfiguration and RocketMQAutoConfiguration.
Findings
- [Warning]
topic.split(COMMA)does not trim whitespace — if a user configures"topic1, topic2"(with a space after the comma), the second topic will have a leading space. Consider using:Arrays.stream(topic.split(COMMA)).map(String::trim).filter(s -> !s.isEmpty()).toArray(String[]::new)
- [Info] No test coverage for the multi-topic split behavior. Consider adding a test case that verifies comma-separated topics are correctly parsed.
Suggestions
- Add a unit test for
producerBuilder()that verifies"topic1,topic2"results in both topics being set. - Consider edge cases: empty string, single topic (no comma), trailing comma.
Automated review by github-manager-bot
|
Issue Evaluation Category: This references issue #685 about multiple topic configuration not being supported in To proceed with verification, please provide:
If this is a fix proposal, please include the code changes or link to a PR. Automated evaluation by RockteMQ-AI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix topics