Skip to content

fix for KAFKA-3645#23

Open
rickyspeak wants to merge 1 commit into
wvanbergen:masterfrom
rickyspeak:master
Open

fix for KAFKA-3645#23
rickyspeak wants to merge 1 commit into
wvanbergen:masterfrom
rickyspeak:master

Conversation

@rickyspeak

Copy link
Copy Markdown

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.

@wvanbergen wvanbergen left a comment

Copy link
Copy Markdown
Owner

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. 👍

Comment thread kazoo.go
}

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

Copy link
Copy Markdown
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.

Comment thread kazoo.go
// 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
Copy Markdown
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
Copy Markdown
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