[SERVER-66852] Remove the Session objects for expired transaction sessions whose logical session hasn't expired Created: 27/May/22  Updated: 29/Oct/23  Resolved: 03/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc9, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: equality-ga, ga-required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Initiative
Related
related to SERVER-66777 FLE 2 internal transactions are being... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding NYC 2022-06-13
Participants:

 Description   

Currently, when reaping sessions from memory, if the LogicalSessionCache reaper finds that a logical session hasn't expired, it would skip reaping its transaction sessions from the SessionCatalog entirely including the ones that are expired and not in-use. This could cause the SessionCatalog to end up with a lot of expired sessions if the external client just keeps using the same logical session.

Note that the on-disk states for those expired transactions still get deleted in this step.



 Comments   
Comment by Githook User [ 03/Jun/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-66852 Eagerly erase retryable child sessions from SessionCatalog

(cherry picked from commit 8e96ecbf56a0763f4300aa38746ac86a8335d264)
Branch: v6.0
https://github.com/mongodb/mongo/commit/116383210582edb4ba1f447380c25d0dc2469070

Comment by Githook User [ 02/Jun/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-66852 Eagerly erase retryable child sessions from SessionCatalog
Branch: master
https://github.com/mongodb/mongo/commit/8e96ecbf56a0763f4300aa38746ac86a8335d264

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