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

Notify waiting server selector when a server is available

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7.0.rc0
    • Spec Comp
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: