[SERVER-78187] SERVER-78187 Make killing a child session interrupt all sessions associated with it unless the kill is performed by reaping of internal transactions for old retryable writes Created: 16/Jun/23  Updated: 29/Oct/23  Resolved: 05/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc7

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-66777 FLE 2 internal transactions are being... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0
Sprint: Sharding NYC 2023-06-26, Sharding NYC 2023-07-10
Participants:
Linked BF Score: 106

 Description   

Currently, killing a child session doesn't interrupt its parent session or other child sessions. This behavior was introduced in SERVER-66777 to prevent the reaping expired child sessions to interrupt active (parent or child) sessions. However, this has led to deadlock in BF-28922 where a session should have been interrupted by stepdown and wasn't because of this logic. Given that reaping expired child sessions is the only case (that we know of) where killing a child session shouldn't interrupt its parent session or other child sessions, we should make killing a child session interrupt all sessions associated with it in all other cases.



 Comments   
Comment by Githook User [ 06/Jul/23 ]

Author:

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

Message: SERVER-78187 Fix file name in backports_required_for_multiversion_tests.yml

(cherry picked from commit 28906c2ec86618e0fad15def3aefbd41f97c33cd)
Branch: v7.0
https://github.com/mongodb/mongo/commit/6ff6bdbc852e17974112fe41ccaea2eca573f869

Comment by Githook User [ 06/Jul/23 ]

Author:

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

Message: SERVER-78187 Make killing a child session interrupt all sessions associated with it unless the kill is performed by reaping of internal sessions for old retryable writes

(cherry picked from commit ba6406caabe61d58bd621f96d983acea75a33634)
Branch: v7.0
https://github.com/mongodb/mongo/commit/9bd70563bd104dd532895b9ef725aa9f90a36f75

Comment by Githook User [ 06/Jul/23 ]

Author:

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

Message: SERVER-78187 Fix file name in backports_required_for_multiversion_tests.yml
Branch: master
https://github.com/mongodb/mongo/commit/28906c2ec86618e0fad15def3aefbd41f97c33cd

Comment by Githook User [ 05/Jul/23 ]

Author:

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

Message: SERVER-78187 Make killing a child session interrupt all sessions associated with it unless the kill is performed by reaping of internal sessions for old retryable writes
Branch: master
https://github.com/mongodb/mongo/commit/ba6406caabe61d58bd621f96d983acea75a33634

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