Git Product home page Git Product logo

Comments (4)

mreiferson avatar mreiferson commented on June 16, 2024

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.

sn00011 avatar sn00011 commented on June 16, 2024

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.

sn00011 avatar sn00011 commented on June 16, 2024

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.

mreiferson avatar mreiferson commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.