[CDRIVER-4557] ConnectionId returned in heartbeats may be int64 Created: 18/Jan/23  Updated: 28/Oct/23  Resolved: 26/Apr/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Improvement Priority: Unknown
Reporter: PM Bot Assignee: Kevin Albertson
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 CXX-2638 ConnectionId returned in heartbeats m... Closed
is related to CDRIVER-4502 libmongoc expects connectionId in hel... Closed
is related to PHPC-2220 ConnectionId returned in heartbeats m... Closed
Quarter: FY24Q1
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.


 Description   

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



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

Author:

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

Message: CDRIVER-4557 add int64 `connection_id` functions (#1246)

  • add connection_id_int64 functions
  • deprecate int32 connection_id functions
  • replace use of int32 with connection_id with int64
  • add deprecation notes to documentation
  • document connection_id with int64
Generated at Wed Feb 07 21:21:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.