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

Stuck on socket read #343

Description

@ashrestha91

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions