Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98873

Streams: allow the mongocxx driver to reattempt to select a server more than once

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Atlas Streams
    • Fully Compatible
    • Sprint 64, Sprint 65
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/10gen/mongo/blob/914d6009c933a23343710398c59be136f6e7fc5c/src/mongo/db/modules/enterprise/src/streams/third_party/mongocxx/dist/mongoc/mongoc-topology.c#L381

            /* Server Selection Spec:
             *
             *   "Single-threaded drivers MUST provide a "serverSelectionTryOnce"
             *   mode, in which the driver scans the topology exactly once after
             *   server selection fails, then either selects a server or raises an
             *   error.
             *
             *   "The serverSelectionTryOnce option MUST be true by default."
             */
      

      At the moment, the driver scans the topology only once after the server selection fails. Ideally, we should reattempt that multiple times.

            Assignee:
            andrea.rahmanan@mongodb.com Andrea Rahmanan
            Reporter:
            andrea.rahmanan@mongodb.com Andrea Rahmanan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None