Skip to content

Commit

Permalink
Merge pull request #70 from icebourg/topic_error_handling
Browse files Browse the repository at this point in the history
Log an error message when we encounter trouble with getting leader info
  • Loading branch information
toddpalino committed May 11, 2016
2 parents ba73de4 + cd2f05c commit 5bf9ffd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kafka_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func (client *KafkaClient) getOffsets() error {
broker, err := client.client.Leader(topic, int32(i))
if err != nil {
client.topicMapLock.RUnlock()
log.Errorf("Topic leader error on %s:%v: %v", topic, int32(i), err)
return err
}
if _, ok := requests[broker.ID()]; !ok {
Expand Down

0 comments on commit 5bf9ffd

Please sign in to comment.