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

nsqd: bump go-options / log when we can't get channels for pre-creation #831

Merged
merged 2 commits into from
Dec 28, 2016

Conversation

mreiferson
Copy link
Member

@mreiferson mreiferson commented Dec 28, 2016

Addresses proposal (1) and (2) of #826

@mreiferson mreiferson changed the title nsqd: log when we can't get channels for pre-creation nsqd: bump go-options / log when we can't get channels for pre-creation Dec 28, 2016
@mreiferson
Copy link
Member Author

mreiferson commented Dec 28, 2016

RFR @jehiah

cc @ploxiln @stephensearles

channelNames, _ := n.ci.GetLookupdTopicChannels(t.name, lookupdHTTPAddrs)
channelNames, err := n.ci.GetLookupdTopicChannels(t.name, lookupdHTTPAddrs)
if err != nil {
n.logf("ERROR: failed to get channels for pre-creation for topic %s - %s", t.name, err)
Copy link
Member

Choose a reason for hiding this comment

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

Technically we failed to query all lookupd's so we don't know if the result is deficient in any way. We may have still gotten channels for pre-creation from available lookupd's. Rephrase this and/or make different error messages based on channelNames?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair point, will update 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

how's this?

@jehiah jehiah merged commit 15cc418 into nsqio:master Dec 28, 2016
@mreiferson mreiferson deleted the get-channel-error branch December 28, 2016 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants