[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: |
|
||||
| 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: (cherry picked from commit d461c7c2fb3197b82585099f7aa7c1a07f2223db) |
| Comment by Githook User [ 31/May/22 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |