[SERVER-41751] FlowControlTicketRefresher can shut down before _minOfCheckpointAndOldestTimestampListener, causing a hang Created: 14/Jun/19  Updated: 29/Oct/23  Resolved: 19/Jun/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.0-rc2, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Maria van Keulen Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-41749 FlowControlTicketRefresher can shut d... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Execution Team 2019-07-01
Participants:
Linked BF Score: 31

 Description   

When the PeriodicRunner gets shut down during clean shutdown, the shutdown will stall if an existing Periodic Job is running and hanging. Shut down of the FlowControlTicketRefresher job can cause global IX lock acquisitions to hang (see SERVER-41345). Since the _minOfCheckpointAndOldestTimestampListener job takes a global IX lock, if the FlowControlTicketRefresher shuts down while theĀ _minOfCheckpointAndOldestTimestampListener is waiting on the IX lock acquisition, shutdown can still stall.

A fix for this is to move the bypass handling of Flow Control ticket acquisitions to occur before the PeriodicRunner shutdown.



 Comments   
Comment by Githook User [ 20/Jun/19 ]

Author:

{'name': 'Maria van Keulen', 'email': 'maria@mongodb.com', 'username': 'mvankeulen94'}

Message: SERVER-41751 Stop Flow Control mechanism before PeriodicRunner shutdown

(cherry picked from commit 6378cc7ee320032e7dbec45621611b4c3e660507)
Branch: v4.2
https://github.com/mongodb/mongo/commit/ee7cb727d3bf8c1f8c93ac25ad3fe8742da436fb

Comment by Githook User [ 19/Jun/19 ]

Author:

{'name': 'Maria van Keulen', 'email': 'maria@mongodb.com', 'username': 'mvankeulen94'}

Message: SERVER-41751 Stop Flow Control mechanism before PeriodicRunner shutdown
Branch: master
https://github.com/mongodb/mongo/commit/6378cc7ee320032e7dbec45621611b4c3e660507

Generated at Thu Feb 08 04:58:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.