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 #5127] fix create topic error in Standalone mode #5128

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jevinjiang
Copy link
Contributor

Fixes #5127

Motivation
bugfix in #5127

Documentation
Adjusted the judgment when creating a topic,And ask to start the channel when subscribing
Does this pull request introduce a new feature? (no)

@@ -60,25 +60,20 @@ public static StandaloneBroker getInstance() {
public MessageEntity putMessage(String topicName, CloudEvent message) {
TopicMetadata topicMetadata = new TopicMetadata(topicName);
if (!messageContainer.containsKey(topicMetadata)) {
createTopic(topicName);
throw new RuntimeException("The topic is not created");
Copy link
Member

Choose a reason for hiding this comment

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

Better to add a topic name in logs.

@Pil0tXia
Copy link
Member

@jevinjiang Plz check CI errors

@jevinjiang
Copy link
Contributor Author

@jevinjiang Plz check CI errors

completed~

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.

[Bug] Create topic error in Standalone mode
3 participants