Skip to content

Commit

Permalink
Merge pull request #839 from ploxiln/no_lookupd_broadcast
Browse files Browse the repository at this point in the history
nsqd: log errors if no nsqlookupd broadcast address
  • Loading branch information
mreiferson authored Dec 29, 2016
2 parents c7623b5 + 28dbeaf commit 02619e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nsqd/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func connectCallback(n *NSQD, hostname string, syncTopicChan chan *lookupPeer) f
n.logf("LOOKUPD(%s): ERROR parsing response - %s", lp, resp)
} else {
n.logf("LOOKUPD(%s): peer info %+v", lp, lp.Info)
if lp.Info.BroadcastAddress == "" {
n.logf("LOOKUPD(%s): ERROR - no broadcast address", lp)
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions nsqd/nsqd.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ func (n *NSQD) GetTopic(topicName string) *Topic {
}
t.getOrCreateChannel(channelName)
}
} else if len(n.getOpts().NSQLookupdTCPAddresses) > 0 {
n.logf("ERROR: no available nsqlookupd to query for channels to pre-create for topic %s", t.name)
}

t.Unlock()
Expand Down

0 comments on commit 02619e4

Please sign in to comment.