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

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Monitoring
    • None
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: