-
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: panic on /stats when clients present #245
Conversation
Thanks for the report. What's the go version and NSQ revision? |
Go 1.0.2 and NSQ 0.2.22-alpha (HEAD ref: 1154c59) |
@jeremytregunna I'm curious if you have a specific motivation for using Go 1.0.2 vs 1.0.3 or 1.1. There were a lot of issues that were fixed in 1.0.3, and that's listed as the official minimum supported version on the install page. Are you trying to build nsq for something beyond the linux/darwin binary builds? |
@jehiah No, I was exploring using nsq for a particular purpose, and my sandbox machine had 1.0.2 installed. I didn't see any note about 1.0.3, must have glossed over it. I'll close this ticket then, and only reopen if this is repeatable in a binary build. |
@jeremytregunna cool, let us know how it goes and feel free to ask any other usage related questions on the user group. FYI the latest stable binary distribution does not include TLS support, if that was an important feature for you. We should be stamping a new stable shortly but in the meantime there is a |
This is still an issue with go 1.1.1 on the same hardware. Exact steps to reproduce:
This is the backtrace I get now:
|
I'm guessing I probably broke something in #242 Will take a look in a few. |
@jeremytregunna if you wanna pull down this revision and confirm this fixes it for you that would be helpful as well, thanks! |
@mreiferson I reverted 81cf8e8 and cleaned, installed, and tried to reproduce again, I got the same behaviour, same results in the last crash log I posted. |
that's odd, I can't reproduce after applying that fix (test added btw)... Can you double check the binary you're running contains the fix? |
@mreiferson Sorry, my mistake. a033faa does not cause the crash. |
@jeremytregunna great, thanks for your help in tracking this down. |
nsqd: panic on /stats when clients present
The stack trace below is what I get on the console when my instance of nsqd stops responding. The messages are plain text, not JSON being sent across the topics, have one channel attached to each affected topic.
I've been able to reproduce this on a sandbox server with one channel named "test" and one channel named "chan". Sending a couple of messages across the wire, then letting it sit for a while (~5 minutes), coming back and sending another one, causes the stats endpoint on nsqd to return empty results.
Total setup looks like this:
test
, channelchan
.Ubuntu 13.04/amd64 3.8.0-23-generic SMP