Do not mark server as Unknown during topology scan until after retry has failed

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SDAM says:

      Once a server is connected, the client MUST change its type to Unknown only after it has retried the server once.

      libmongoc does will retry, but it marks the server description as Unknown immediately upon network error here. It should wait until after the retry, otherwise other threads will observe the unknown server description before the retry completes and could fail to select that server.

              Assignee:
              Unassigned
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: