[CDRIVER-2555] Update clusterTime from handshake replies Created: 16/Mar/18  Updated: 28/Oct/23  Resolved: 25/Mar/18

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.8.0
Fix Version/s: 1.10.0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-33947 Arbiter replies "No keys found for HM... Closed
Backwards Compatibility: Fully Compatible

 Description   

It would be nice if, when we receive a clusterTime in an ismaster response while handshaking a connection, we update the client's clusterTime with that value.

Update _mongoc_topology_update_no_lock:

    _mongoc_topology_update_cluster_time (
      topology, &topology->description.cluster_time);

Possibly fixed when we refactored recently?



 Comments   
Comment by Githook User [ 25/Mar/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2555 fix ubsan
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/380ccf242a48cc9fbe781b6a6106e545b95b5ef2

Comment by Kevin Albertson [ 25/Mar/18 ]

Added a test to verify the topology clusterTime is already updated after a handshake. No functionality change was necessary.

Comment by Githook User [ 25/Mar/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2555 check clusterTime syncs in handshake
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/aa6750385f2090d10bac5fd78f140d0d76b89918

Generated at Wed Feb 07 21:15:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.