[SERVER-66851] InternalSessionsPool is not reusing internal sessions for non-retryable writes 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: Bug 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
Depends
Initiative
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding NYC 2022-06-13
Participants:
Linked BF Score: 35

 Description   

The InternalSessionsPool appears to have a bug that prevents the internal sessions for non-retryable writes from being reused. It looks like the key stored in _childSessions the map is (id, uid, txnUUID) but the key used for looking up sessions is (id,uid). The unit test for this part of the code is also incorrect



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

Author:

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

Message: SERVER-66851 Internal session pool should use parent sessions as keys for child session map

(cherry picked from commit 37e28d05ca12d2b3835bbe2145cbe258872e7ed6)
Branch: v6.0
https://github.com/mongodb/mongo/commit/d94581d33ce3ace6b69e7445f16ee15e1308135e

Comment by Githook User [ 01/Jun/22 ]

Author:

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

Message: SERVER-66851 Internal session pool should use parent sessions as keys for child session map
Branch: master
https://github.com/mongodb/mongo/commit/37e28d05ca12d2b3835bbe2145cbe258872e7ed6

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