-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: create Topic paused #1050
Conversation
channels always added async along with notification on channelUpdateChan
31bfb88
to
32f99eb
Compare
Yea, this is definitely better, thanks. It's still pretty gnarly, but I'm not sure how much it's worth messing with it. |
I should probably do some real testing :P |
Initial testing looks good, as expected. I wonder if there might be some potential for confusion due to this change ... maybe if some script creates a topic then immediately pauses it, that could happen before the automatic un-pause and the the topic could unexpectedly end up unpaused. Or something like that. I don't want to be paranoid about this, just something to keep in mind. On the other hand, I like how this reduces how long topic locks are held. Though I guess it's a one-time thing. As a further digression, I know you thought may be a good idea to make a |
That's an interesting edge case. It probably means we're abusing |
Yeah I think that's a good idea - instead of a special first "UnPause", have a separate "Start". |
The tricky bit there is that |
Enables simplifications. Experimental, not fully tested.
Alternative to #1049. cc @mreiferson