[SERVER-37665] Add interface to check in and check out sessions Created: 19/Oct/18  Updated: 29/Oct/23  Resolved: 16/Nov/18

Status: Closed
Project: Core Server
Component/s: Aggregation Framework, Sharding
Affects Version/s: None
Fix Version/s: 4.1.6

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Kaloian Manassiev
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-37499 Potential deadlock when using exchang... Closed
is depended on by SERVER-33683 Allow aggregation $mergeCursors stage... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2018-11-19
Participants:

 Description   

This will enable a solution to SERVER-33683 and SERVER-37499.



 Comments   
Comment by Charlie Swanson [ 16/Nov/18 ]

Awesome, thanks kaloian.manassiev!

Comment by Kaloian Manassiev [ 16/Nov/18 ]

charlie.swanson, this ability to yield sessions during execution is now available so your work should be unblocked.

Comment by Githook User [ 16/Nov/18 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-37665 Add interface to explicitly checkin/checkout the OpContext session
Branch: master
https://github.com/mongodb/mongo/commit/6d4e557f6959dc326cd49249517fa6254b4bb0f8

Comment by Githook User [ 16/Nov/18 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-37665 Get rid of the 'checkOutSession' parameter of OperationContextSession

This simplifies the behaviour of the class and moves all the check-out
decision taking to happen in the only consumer - the endpoint.

Also renames OperationContextSessionMongoD to MongoDOperationContextSession
in order to be in sync with the naming nomenclature of SessionCatalog and
MongoDSessionCatalog.
Branch: master
https://github.com/mongodb/mongo/commit/943b0f7294b1f30483cc9d0fa4e870b00a68465d

Comment by Charlie Swanson [ 19/Oct/18 ]

kaloian.manassiev I put this in the 'Improve $out' epic, but mostly so I don't loose track of it for now. Feel free to schedule this however you want! As we've discussed - we will need this for 4.2 and would like it soon (next sprint or two) to unblock this epic. However, we can split out this part of the project if you are unable to do this soon, so it's not a hard deadline.

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