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: fix new topic channel lookup/creation #217

Merged
merged 1 commit into from
Jun 6, 2013

Conversation

mreiferson
Copy link
Member

When an nsqd first sees a topic it queries nsqlookupd to identify any channels that the cluster might know about in order to proactively create them (in the case where there is more than one channel this prevents data loss due to timing of consumers subscribing).

In #176, a regression was introduced that prevented the topic's messagePump state from being updated in the code path described above. This meant that an nsqd that queried and identified channels during creation of a topic would not begin writing those messages to its channels.

cc @elubow @jehiah

when an nsqd first sees a topic queries nsqlookupd to identify
any channels that the cluster might know about in order
to proactively create them (in the case where there is more than one
channel this prevents data loss due to timing of consumers subscribing).

in nsqio#176 a regression was introduced that prevent the topic's messagePump
state from being updated in the code path described above.  This meant
that an nsqd that identified channels during creation of a topic would
not begin writing those messages into its channels.
jehiah added a commit that referenced this pull request Jun 6, 2013
nsqd: fix new topic channel lookup/creation
@jehiah jehiah merged commit e7f9b86 into nsqio:master Jun 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants