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

getting "ThreadError: deadlock; recursive locking" randomly on production

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.2
    • Affects Version/s: 1.3.1
    • Component/s: None
    • Environment:
      ruby 1.9.2
      rails 3.0.6
      linux 2.6.38-x86_64

      this is the backtrace:

      <internal:prelude>:8:in `lock'
      <internal:prelude>:8:in `synchronize'
      mongo (1.3.0) lib/mongo/connection.rb:808:in `get_request_id'
      mongo (1.3.0) lib/mongo/connection.rb:789:in `add_message_headers'
      mongo (1.3.0) lib/mongo/connection.rb:446:in `receive_message'
      mongo (1.3.0) lib/mongo/cursor.rb:392:in `block in send_initial_query'
      mongo (1.3.0) lib/mongo/connection.rb:585:in `instrument'
      mongo (1.3.0) lib/mongo/cursor.rb:391:in `send_initial_query'
      mongo (1.3.0) lib/mongo/cursor.rb:356:in `refresh'
      mongo (1.3.0) lib/mongo/cursor.rb:75:in `next_document'
      mongo (1.3.0) lib/mongo/collection.rb:242:in `find_one'
      /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/mongoid-b760004d5bc4/lib/mongoid/collections/master.rb:19:in `block (3 levels) in <class:Master>'
      /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/mongoid-b760004d5bc4/lib/mongoid/collections/retry.rb:29:in `retry_on_connection_failure'
      /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/mongoid-b760004d5bc4/lib/mongoid/collections/master.rb:18:in `block (2 levels) in <class:Master>'
      /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/mongoid-b760004d5bc4/lib/mongoid/collection.rb:71:in `find_one'
      /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/mongoid-b760004d5bc4/lib/mongoid/contexts/mongo.rb:248:in `one'
      /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/mongoid-b760004d5bc4/lib/mongoid/criteria.rb:48:in `first'

            Assignee:
            kbanker Kyle Banker
            Reporter:
            david.cuadrado David Cuadrado
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: