Skip to content

Commit

Permalink
client: don't abort creation on auth failure
Browse files Browse the repository at this point in the history
The client can still be useful for some tasks even if it can't maintain a
complete list of topics due to e.g. Kafka 0.10's new ACLs.

Fixes #722.
  • Loading branch information
eapache committed Aug 12, 2016
1 parent a0554bb commit f4a6263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func NewClient(addrs []string, conf *Config) (Client, error) {
switch err {
case nil:
break
case ErrLeaderNotAvailable, ErrReplicaNotAvailable:
case ErrLeaderNotAvailable, ErrReplicaNotAvailable, ErrTopicAuthorizationFailed, ErrClusterAuthorizationFailed:
// indicates that maybe part of the cluster is down, but is not fatal to creating the client
Logger.Println(err)
default:
Expand Down

0 comments on commit f4a6263

Please sign in to comment.