Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Stuck on socket read #343

Open
ashrestha91 opened this issue Jan 23, 2015 · 2 comments
Open

Stuck on socket read #343

ashrestha91 opened this issue Jan 23, 2015 · 2 comments

Comments

@ashrestha91
Copy link

I'm using sidekiq with mongoid, and am seeing some workers get stuck. They don't error out, they're just hung. The sidekiq thread dump gives the following:

/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection/socket/connectable.rb:47:in `read'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection/socket/connectable.rb:47:in `block in read'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection/socket/connectable.rb:119:in `handle_socket_errors'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection/socket/connectable.rb:47:in `read'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection.rb:194:in `read_data'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection.rb:130:in `block in read'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection.rb:224:in `with_connection'
/usr/local/bundle/gems/moped-2.0.3/lib/moped/connection.rb:114:in `read'

We typically see 1 or 2 workers out of a few hundred thousand have this issue each day. If we restart the workers/service the workers usually succeed.

@jlhonora
Copy link

I'm facing the same issue, did you manage to solve it somehow?

@jonhyman
Copy link
Contributor

Is your replica set or network connection failing at some point? See discussion at #331

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants