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

Notify waiting server selector when a server is available

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: Spec Comp
    • None

      Currently the server selector unconditionally sleeps for a certain time and then checks whether there is a suitable server. Instead of this we can have a semaphore-based implementation where the monitoring threads will broadcast any time a server description changes (technically, once the server description has gone through SDAM flow and updated the topology) and the server selector will wait on that semaphore and be immediately awoken when there is a change in topology.

      This is split from 1547 because the two notification directions proved to be implementable independently.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: