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

Fix Kafka configuration #1913

Merged
merged 3 commits into from
May 4, 2018
Merged

Fix Kafka configuration #1913

merged 3 commits into from
May 4, 2018

Conversation

jaredscheib
Copy link
Contributor

@jaredscheib jaredscheib commented May 4, 2018

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

The Problem

  • Kafka was not being returned among the sections of the config in Kapacitor 1.5 out of the box.
  • Two of the default Kafka config's duration values were missing quotes and caused errors when used as-is.

The Solution

  • Add a function to Kafka config to generate a new config, and make sure server generates that new config on startup.
  • Properly quote the two durations in the default Kafka config.

return Config{
Enabled: false,
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we want a default enabled kakfa config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean, why do we want a default disabled kafka config?

Copy link
Contributor Author

@jaredscheib jaredscheib May 4, 2018

Choose a reason for hiding this comment

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

To be sure, it's Enabled: false. I could also just do return Config{}, I suppose?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, just return an empty Config{}... and apparently I can't read :(

thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries! Sounds good -- done.

@nathanielc nathanielc merged commit 7e95777 into master May 4, 2018
nathanielc added a commit that referenced this pull request May 4, 2018
@nathanielc nathanielc deleted the js-fix-kafka-config branch May 4, 2018 22:49
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.

3 participants