mongoc_client_session_start_transaction should error if server selection fails

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.15.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Server selection was introduced into mongoc_client_session_start_transaction for CDRIVER-3067 and CDRIVER-3161; however, neither patch considered the case where server selection might fail. If so, it looks like we'd attempt to access the property of a null pointer.

      I propose adding a check and returning an error if a primary (or mongos node) could not be selected.

            Assignee:
            Clyde Bazile III (Inactive)
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: