[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: |
|
||||||||||||||||
| 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: (cherry picked from commit 8e96ecbf56a0763f4300aa38746ac86a8335d264) |
| Comment by Githook User [ 02/Jun/22 ] |
|
Author: {'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}Message: |