Comments (4)
All reads and writes in go-nsq
are deadlined. You're saying adjusting heartbeat_interval
and read_timeout
did not result in the client detecting errors and exiting?
It's not clear from your client logs, they only show a window on one second of logs.
from go-nsq.
Thanks for your help. After a little more observation, i find probably this is my handler.HandleMessage
issue. Because the go-nsq is blocked at this line:
err := handler.HandleMessage(message)
And my handler's HandleMessage
has a operation that sends a processed result to a channel which blocks. I am not sure whether this explains the problem.
Will go-nsq choke if the user has some bad blocking code in handler.HandleMessage
? And Is the user's full responsibility to make sure this won't happen or is there already something done is go-nsq to bound this?
from go-nsq.
BTW, there is no more log after the last line of go-nsq log:
{"@timestamp":"2015-08-13T18:30:12+08:00","@version":1,"level":"debug","message":"NSQL \u003e DBG 4 [connector.1/default] (mysite:4150) skip sending RDY 2000 (674 remain out of last RDY 2000)"}
just like the go-nsq
is dead. It doesn't do any other operation like reconnect at all.
from go-nsq.
Yes, handlers must be able to make progress for go-nsq
to behave correctly because of the way it explicitly manages concurrency.
Going to close this, if after addressing the blocking handler it still doesn't reconnect please re-open.
Thanks!
from go-nsq.
Related Issues (20)
- JUST WONDER WHY PRODUCER dose not support lookupd ! is there any official explain for this? HOT 1
- beginning close HOT 3
- panic: send closed channel - incomingMessages HOT 1
- feat: NSQ cluster or public network message synchronization
- v1.2.1 use DeferredPublish publish delay message,delay invalidation HOT 4
- SIngleton Producer HOT 2
- Can you tag v1.0.9 HOT 1
- How to use Command? HOT 1
- Support NSQ in ArgoLabs Dataflow HOT 1
- the tag of v1.0.8, and the file of doc.go line 65, the value name p is error, in fact, it is producer. HOT 2
- Disconnects seem to be quite ungraceful HOT 2
- "go test" fails with "connection refused" HOT 2
- Client doesn't know it's disconnected HOT 2
- Panic in producer's router HOT 2
- Conn cannot execute multiple subscribe commands HOT 1
- error connecting to nsqd - dial tcp 127.0.0.1:4150: connect: connection refused? HOT 1
- An Example of multit-hreaded nsq consuming messages HOT 1
- producer: HTTP response to IDENTIFY causes memory allocation of over 1GB HOT 2
- how to clear data in nsq HOT 1
- MaxAttempts Callback HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-nsq.