[GODRIVER-2841] Update a Server's topology version on any handshake Created: 10/May/23  Updated: 15/May/23

Status: Backlog
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-2828 SDAM error handling doesn't ignore er... Closed

 Description   

Currently, a Server description (and topology version) is only updated on heartbeat connection creation and heartbeat results. However, more up-to-date descriptions are available when a new application connection is created. That can create a situation where the known topology version of a server is older than the topology version of a connection, making decision making during SDAM error handling much more difficult because you have to figure out which topology version to use when determining if an error is associated with a new topology version or not.

Instead, we should update the description (and topology version) on a Server when we create application connections as well so the two cannot be out-of-sync.

Definition of done:

  • All handshakes, including monitoring connections, application connections, and heartbeat results (and RTT checks?) update a Server's description.

Generated at Thu Feb 08 08:39:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.