[CSHARP-4483] ConnectionId returned in heartbeats may be int64 Created: 18/Jan/23  Updated: 28/Oct/23  Resolved: 12/Apr/23

Status: Closed
Project: C# Driver
Component/s: SDAM
Affects Version/s: None
Fix Version/s: 2.20.0

Type: Bug Priority: Unknown
Reporter: PM Bot Assignee: James Kovacs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2503 ConnectionId returned in heartbeats m... Implementing
Related
related to CSHARP-4417 Int overflow in connectionId Closed
Upstream Changes Summary:

DRIVERS-2503:
The connectionId in the hello (or legacy hello) response can be an int32, double, or int64. Many drivers assume an int32, which may result in connectionId truncation or connection failure. Drivers should ensure that the server's connectionId (and the client connectionId for consistency) is expressed as a numeric type capable of holding an int64.

NOTE: If the client and server connectionId fields are part of the driver's public API, you may have to add new int64 connectionId fields and deprecate the existing int32 fields. On the next major version bump, the deprecated int32 fields should be removed.

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed
Documentation Changes Summary:

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?


 Description   

This ticket was split from DRIVERS-2503, please see that ticket for a detailed description.



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

Author:

{'name': 'James Kovacs', 'email': 'jkovacs@post.harvard.edu', 'username': 'JamesKovacs'}

Message: CSHARP-4483: connectionId returned in heartbeats may be int32, double, or int64. (#1051)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/37115df680db4dc4e0c48870ad660809f0ae1854

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