Investigate changes in CDRIVER-6173: Update to libmongoc 2.2.1 breaks cluster time gossiping for single-threaded drivers

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      The change made in CDRIVER-5643 breaks cluster time handling for the first command sent out on a single-threaded client. The ticket stops cluster time gossiping on monitoring connections, and I presume that the single-threaded behaviour of using the actual server connection for monitoring commands breaks because of this.

      Environment

      Reproduced with libmongoc 2.2.1, but introduced in 2.2.0.

      How to Reproduce

      See this test failure observed in PHP: https://evergreen.mongodb.com/rest/v2/tasks/mongo_php_driver_2.x_test_debian11_php_8.3_test_mongodb_5.0_replicaset_auth_patch_e8bc627dbc6babfe4408e9563c6899e73ea9e885_6939685c22c7540007bc85a2_25_12_10_12_32_30/build/TestLogs/b4fb576c7f8162d066cb6103800886f3?execution=0&print_time=true

      We expect the first aggregate command to include a clusterTime, but it's absent. The other tests that run afterwards correctly include a clusterTime.

            Assignee:
            Andreas Braun
            Reporter:
            Service Account: DBX TPM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: