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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3
    • Component/s: None
    • Labels:

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: