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

The use of signal in Pool#checkin leads to potential dead-locking

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.8.3
    • Affects Version/s: 1.8.2
    • Component/s: None

      In Pool#checkin we're using ConditionVariable#signal when we should actually be using ConditionVariable#broadcast to wake up all threads. This code as-is leads to a number of scenarios where thread dead-locking is possible.

      https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/util/pool.rb#L169

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            brandon.black@10gen.com Brandon Black
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: