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

[STORM-2003] Make sure config contains TOPIC before get it #1590

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

darionyaphet
Copy link
Contributor

STORM-2003 Make sure config contains TOPIC before get it

When topic selector is not specified, KafkaBolt will get topic name from storm config . We should make sure the topic name is not null .

@harshach
Copy link
Contributor

harshach commented Aug 1, 2016

+1

if(stormConf.containsKey(TOPIC)) {
this.topicSelector = new DefaultTopicSelector((String) stormConf.get(TOPIC));
} else {
throw new IllegalArgumentException("topic select should be specified");
Copy link
Member

Choose a reason for hiding this comment

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

@darionyaphet You may want to have exception's message like below.
'topic' should be specified in bolt's configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@satishd nice advice and fixed

@HeartSaVioR
Copy link
Contributor

+1

@asfgit asfgit merged commit 0f8aebd into apache:master Sep 23, 2016
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.

5 participants