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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 1.8.3
    • Affects Version/s: 1.8.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Brock (Inactive)
            Reporter:
            Brandon Black (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: