Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-573

Update "not master" and "node is recovering" behavior

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.9.0
    • None
    • None

    Description

      Obey Server Discovery and Monitoring Spec's rules for parsing and responding to "not master" errors: mark the server Unknown as if it were a network error. Detect these errors in the topology scanner's async command callback and in mongoc_cluster_run_command_monitored / mongoc_cluster_run_command_internal.

      This has been a missing feature since we implemented SDAM in libmongoc
      1.2.0. It's now urgent to fix because Retryable Writes depends on this
      feature. Otherwise during a stepdown, the driver might try a write
      against a former primary, get a "not master" error, and try again with
      the same server. Marking it Unknown ensures we re-scan the topology.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: