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 for KAFKA-3645 #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rickyspeak
Copy link

https://issues.apache.org/jira/browse/KAFKA-3645

I have a feature branch for doing SASL/Kerberos and this bug crept up. Here is a solution for this bug until 0.10.1 comes out.

Copy link
Owner

@wvanbergen wvanbergen left a comment

Choose a reason for hiding this comment

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

Just some error handling questions, but this is a nice improvement. 👍

}

if len(brokerEP.Endpoints) == 0 {
return nil, err
Copy link
Owner

Choose a reason for hiding this comment

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

You cannot use err here; you'll need the create your own error value to return for this scenario.

// take first endpoint in the list as the only valid host
listenerTokens := strings.SplitN(brokerEP.Endpoints[0], "://", 2)
if len(listenerTokens) < 2 {
return nil, err
Copy link
Owner

Choose a reason for hiding this comment

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

same here.

@wvanbergen
Copy link
Owner

Also, can you add a test for the new behavior?

It looks like Travis didn't run CI on this pull request. This issue should be fixed now when you push again.

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.

2 participants