[SERVER-71909] Split ASIOSession into a Sync and an Async class Created: 06/Dec/22  Updated: 29/Oct/23  Resolved: 06/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Matt Diener (Inactive) Assignee: Matt Diener (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-71100 Make Session diagnostics logging generic Closed
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-01-23, Service Arch 2023-02-06, Service Arch 2023-02-20, Service Arch 2023-03-06, Service Arch 2023-03-20, Service Arch 2023-04-03, Service Arch 2023-04-17
Participants:

 Description   

See design. The high level goal of this task is to remove the need to ever call ensureSync and ensureAsync by introducing two implementations of the ASIOSession:

  • AsyncASIOSession
  • SyncASIOSession

In practice there is no current use case where a Session goes from being Async -> Sync while it's being leased out. Because of this, the NetworkInterface should be able to return the right ASIOSession subclass to the user.



 Comments   
Comment by Matt Diener (Inactive) [ 06/Apr/23 ]

Closing this off since the remaining work associated with the split is already captured by other tickets in the project.

Comment by Githook User [ 22/Feb/23 ]

Author:

{'name': 'Matt Diener', 'email': 'matt.diener@mongodb.com', 'username': 'mattdiener'}

Message: SERVER-71909 Create an initial split between Sync and Async AsioSession
Branch: master
https://github.com/mongodb/mongo/commit/030991890bcda8ba7b7fa5ff50c9c53de9ed2b51

Generated at Thu Feb 08 06:20:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.