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

nsq_tail: safety #190

Merged
merged 1 commit into from
May 21, 2013
Merged

nsq_tail: safety #190

merged 1 commit into from
May 21, 2013

Conversation

mreiferson
Copy link
Member

nsq_tail should generate a random channel name and if --channel is specified it should require it to be #ephemeral

cc @jehiah

log.Fatalf("--topic is required")
}

if !strings.HasSuffix(*channel, "#ephemeral") {
Copy link
Member

Choose a reason for hiding this comment

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

I can think of some use cases where you wouldn't want this restriction. Without it you could use nsq_tail to feed normal pipe chains for batch processing where you do want backlog between short runs.

Copy link
Member Author

Choose a reason for hiding this comment

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

I just don't like how you can inadvertently consume messages from a live channel when all you want to do is debug.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I think the default should continue to be "#ephemeral". I just don't wan't to limit this to only ephemeral channels.

jehiah added a commit that referenced this pull request May 21, 2013
@jehiah jehiah merged commit d9e2273 into nsqio:master May 21, 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