Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-783

ThreadError: deadlock; recursive locking

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.2
    • Affects Version/s: 1.10.1
    • Component/s: Replica Set
    • None
    • Environment:
      ruby 2.0.0-p481
      passenger 4.0.44
      rails 3.2.18

      backtrace:

      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:150→ synchronize
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:150→ pools
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:263→ connected?
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:233→ refresh
      mongo-1.10.1/lib/mongo/cursor.rb:550→ rescue in block in send_initial_query
      mongo-1.10.1/lib/mongo/cursor.rb:561→ block in send_initial_query
      mongo-1.10.1/lib/mongo/functional/logging.rb:55→ block in instrument
      mongo-1.10.1/lib/mongo/functional/logging.rb:20→ instrument
      mongo-1.10.1/lib/mongo/functional/logging.rb:54→ instrument
      mongo-1.10.1/lib/mongo/cursor.rb:539→ send_initial_query
      mongo-1.10.1/lib/mongo/cursor.rb:524→ refresh
      mongo-1.10.1/lib/mongo/cursor.rb:136→ next
      mongo-1.10.1/lib/mongo/db.rb:556→ command
      mongo-1.10.1/lib/mongo/connection/node.rb:110→ block (2 levels) in set_config
      /home/apps/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/timeout.rb:66→ timeout
      mongo-1.10.1/lib/mongo/connection/node.rb:109→ block in set_config
      mongo-1.10.1/lib/mongo/connection/node.rb:102→ synchronize
      mongo-1.10.1/lib/mongo/connection/node.rb:102→ set_config
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:218→ block in connect_to_members
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:214→ each
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:214→ connect_to_members
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:65→ block in connect
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:60→ synchronize
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:60→ connect
      mongo-1.10.1/lib/mongo/connection/pool_manager.rb:77→ refresh!
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:205→ block in connect
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:198→ synchronize
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:198→ connect
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:258→ hard_refresh!
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:244→ refresh
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:520→ sync_refresh
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:340→ checkout
      mongo-1.10.1/lib/mongo/mongo_replica_set_client.rb:358→ checkout_reader
      mongo-1.10.1/lib/mongo/cursor.rb:613→ checkout_socket_from_connection
      mongo-1.10.1/lib/mongo/cursor.rb:542→ block in send_initial_query
      mongo-1.10.1/lib/mongo/functional/logging.rb:55→ block in instrument
      mongo-1.10.1/lib/mongo/functional/logging.rb:20→ instrument
      mongo-1.10.1/lib/mongo/functional/logging.rb:54→ instrument
      mongo-1.10.1/lib/mongo/cursor.rb:539→ send_initial_query
      mongo-1.10.1/lib/mongo/cursor.rb:524→ refresh
      mongo-1.10.1/lib/mongo/cursor.rb:136→ next
      mongo-1.10.1/lib/mongo/db.rb:556→ command
      mongo-1.10.1/lib/mongo/collection.rb:1131→ generate_indexes
      mongo-1.10.1/lib/mongo/collection.rb:585→ ensure_index
      mongo-1.10.1/lib/mongo/gridfs/grid_file_system.rb:40→ initialize

            Assignee:
            Unassigned Unassigned
            Reporter:
            sashazykov Aleksandr Zykov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: