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

Merged
merged 6 commits into from
Dec 5, 2024

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~

qqeasonchen
qqeasonchen previously approved these changes Nov 18, 2024
@xwm1992 xwm1992 merged commit 831fd72 into apache:master Dec 5, 2024
10 checks passed
@xwm1992 xwm1992 added this to the 1.11.0 milestone Dec 17, 2024
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
5 participants