-
Notifications
You must be signed in to change notification settings - Fork 442
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
Panic via nsq.Producer #45
Conversation
I'll take a look - thanks for the report @philhofer |
@philhofer - whats the revision of the checkout for the go-nsq you're compiling against? |
@mreiferson I pulled the latest master as of a few hours ago. |
I'm trying to reproduce but I'm running into issues compiling
|
@mreiferson My bad - I hadn't pushed changes for a dependency. If you |
@philhofer - it compiles, but I can't reproduce. The test deadlocks because your producer loop sits here - https://github.com/philhofer/fluxlog/blob/master/init.go#L119-L120. When your test goes to There may indeed be some issue to resolve with the Can you reliably reproduce the error without changing the code? |
@philhofer - OK, I was able to reproduce some issues when removing all the sleep in your test. There was a race between connecting and closing in quick succession. I've attached a commit that fixes it to this issue (RFR @jehiah) Also, after fixing the Thanks again for the report. |
@mreiferson Thanks, I appreciate it! |
I'm writing a message dispatcher based on nsq. I'm running into a panic that seems to be originating within the go-nsq library (or, so says the stack trace). Any ideas? The panic occurs on this line.
The test case in question can be found here.
Try it for yourself:
Start
nsqd
running (locally), then:(I'm compiling with go1.3rc1, because my package depends on sync.Pool.)
The test tries to write 10 messages to a topic called "test" - which seems to work ok. Then the *nsq.Producer code tries to close the tcp connection, and everything goes to hell.
This may be an issue on my end, but if it is, I can't find it.
Thanks in advance.