[SERVER-66850] Make the LogicalSessionCache reaper only scan parent sessions when searching for expired logical sessions Created: 27/May/22  Updated: 29/Oct/23  Resolved: 01/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: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding NYC 2022-06-13
Participants:

 Description   

The sessionSessions() calls in MongoDSessionCatalog::reapSessionsOlderThan() and RouterSessionCatalog::reapSessionsOlderThan() should be replaced with scanParentSessions() calls since there is no need to also scan child sessions given they are tracked by the same SessionRuntimeInfo which is the class that tracks lastCheckout time.



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

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-66850 Make the LogicalSessionCache reaper only scan parent sessions when searching for expired logical sessions

(cherry picked from commit d461c7c2fb3197b82585099f7aa7c1a07f2223db)
Branch: v6.0
https://github.com/mongodb/mongo/commit/05683c2d9d9654079df750e9ac5f389a10068b63

Comment by Githook User [ 31/May/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-66850 Make the LogicalSessionCache reaper only scan parent sessions when searching for expired logical sessions
Branch: master
https://github.com/mongodb/mongo/commit/d461c7c2fb3197b82585099f7aa7c1a07f2223db

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