[SERVER-74994] Kill FSM worker thread sessions at the end of their execution Created: 17/Mar/23  Updated: 29/Oct/23  Resolved: 21/Mar/23

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-74993 Create a hook to test for leaked curs... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-03-20, Sharding EMEA 2023-04-03
Participants:
Linked BF Score: 15

 Description   

Some FSM workloads leave open cursors (intentionally or otherwise). Open cursors block the range deleter, and this makes the CheckOrphansDeleted hook fail. This has been happening quite often after SERVER-43099 and it's usually time-consuming to debug – the effect of some FSM forgetting a cursor open is that the stopping the balancer times out or the orphan check hook fails.

SERVER-74993 will introduce a dedicated hook to check for leaked cursors that should run before the CheckOrphansDeleted. In the meantime, this ticket is to make sure the FSM worker threads' sessions are killed by the end of the thread. This will close any idle cursors and let the range deleter make progress so that CheckOrphansDeleted can pass.



 Comments   
Comment by Githook User [ 20/Mar/23 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-74994 Kill FSM worker thread sessions at the end of their execution
Branch: master
https://github.com/mongodb/mongo/commit/411e11d88eaa52d70d02cab8e94d3a5b224900ab

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