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

Disable default kafka server initialisation #29

Merged
merged 4 commits into from
Oct 14, 2022
Merged

Conversation

hi-im-aren
Copy link
Member

@hi-im-aren hi-im-aren commented Oct 12, 2022

Remove the default settings in the bootstrap kafka server validator and only create a consumer if the settings are actually configured.

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
License Apache 2.0

What's in this PR?

Only create a kafka consumer if explicitly set. Prior to this fix, the "bootstrap" kafka consumer was always being created even if there were no "KAFKASERVER_*" settings.

Update kafka-go package to latest.

Why?

Since the kafka server requires infrastructure to be in place outside of allspark to operate, it doesn't align with the other server implementations and it should only be started if the required bootstrap server is provided.

Checklist

Copy link
Member

@pregnor pregnor left a comment

Choose a reason for hiding this comment

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

LGTM, but I don't know Allspark extensively enough to approve.

@hi-im-aren hi-im-aren requested a review from waynz0r October 13, 2022 12:36
tiswanso
tiswanso previously approved these changes Oct 13, 2022
Copy link

@tiswanso tiswanso left a comment

Choose a reason for hiding this comment

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

lgtm!

@hi-im-aren hi-im-aren merged commit 9a37a8f into master Oct 14, 2022
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