Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4467

DefaultServerMonitor.connect must signal all threads (monitor and RTT) rather than signalling one of them at random

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Monitoring
    • None
    • Not Needed

    Description

      DefaultServerMonitor.condition is used in waitForNext, which is then used by both the monitor thread and the RTT thread. Currently DefaultServerMonitor.connect calls condition.signal, which means that only one of the two threads is resumed, instead of resuming both.

      Attachments

        Activity

          People

            valentin.kovalenko@mongodb.com Valentin Kavalenka
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: