[CSHARP-2547] ServerDescription LastUpdateTimestamp is not always set correctly Created: 15/Mar/19  Updated: 28/Oct/23  Resolved: 01/Apr/19

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.8.0
Fix Version/s: 2.8.1

Type: Bug Priority: Major - P3
Reporter: Robert Stam Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The ServerDescription class has a LastUpdateTimestamp that is intended to track the time at which this ServerDescription was created. It can therefore be used to determine how stale the ServerDescription is (i.e. how long ago it was created).

 

Looking at the code it appears that LastUpdateTimestamp is not always set correctly (for example: in the With and WithHeartbeatException methods ServerDescription).



 Comments   
Comment by Githook User [ 12/Apr/19 ]

Author:

{'email': 'dmitry_lukyanov@epam.com', 'name': 'Dmitry Lukyanov', 'username': 'dmitry-lukyanov'}

Message: CSHARP-2547: Set `LastUpdateTimestamp` to DateTime.UtcNow in WithHeartbeatException.
Branch: v2.8.x
https://github.com/mongodb/mongo-csharp-driver/commit/262f933a7fb7593eef24e7e47e3333b0516892fc

Comment by Githook User [ 01/Apr/19 ]

Author:

{'email': 'dmitry_lukyanov@epam.com', 'name': 'Dmitry Lukyanov', 'username': 'dmitry-lukyanov'}

Message: CSHARP-2547: Set `LastUpdateTimestamp` to DateTime.UtcNow in WithHeartbeatException.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3a9d718e529b9e6dc658efed930d31f02a337e0b

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