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

Add retry behavior for handshake failures in mongoc_cluster_stream_for_server

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Quoting mongodb/mongo-c-driver#1141 for CDRIVER-4192:

      Note, mongoc_cluster_stream_for_server, which is used for other miscellaneous connections to the server, is deliberately not involved in these changes. This function may eventually require similar changes according to DRIVERS-2063.

      CDRIVER-4192 implemented retry logic for handshake failure to all mongoc_cluster_stream_for_* methods except mongoc_cluster_stream_for_server. The PHP driver exclusively uses mongoc_cluster_stream_for_server for executing operations, as it performs its own server selection and then specifies a server_id option to libmongoc's execute methods.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: