[SERVER-46841] Make PeriodicRunner interrupt blocked operations on stop Created: 12/Mar/20  Updated: 29/Oct/23  Resolved: 24/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.7, 4.4.0-rc4, 4.7.0

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

Issue Links:
Backports
Depends
Related
related to SERVER-41584 Deadlock shutting down the PeriodicRu... Closed
is related to SERVER-41584 Deadlock shutting down the PeriodicRu... Closed
is related to SERVER-44279 Make LogicalSessionCache synchronize ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Service Arch 2020-03-23, Service Arch 2020-04-06
Participants:
Linked BF Score: 0

 Description   

The stop method for PeriodicRunner waits for the runner thread to return here. This could indefinitely block the thread that called stop() if the runner thread is running a job here that never returns.

For instance, the periodic refresh for LSC could be waiting here when the signal handler thread attempts to stop its job here, which makes the mongod process hang during shutdown.



 Comments   
Comment by Amirsaman Memaripour [ 28/Apr/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-46841 Make PeriodicRunner interrupt blocked operations on stop

(cherry picked from commit ef75364ada70eaf4a096ed07adfeb3175abd719b)
Branch: v4.2
https://github.com/mongodb/mongo/commit/19a8df607f40a3d31d145bef9255ed4e019d23c1

Comment by Githook User [ 28/Apr/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-46841 Make PeriodicRunner users properly handle ClientMarkedKilled errors

(cherry picked from commit 58f10d61febed3a09305d8186101794fe154100f)
Branch: v4.2
https://github.com/mongodb/mongo/commit/46540017b2441fdf5262a814a77c09751e1c9ca6

Comment by Githook User [ 28/Apr/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-46841 Make PeriodicRunner users properly handle ClientMarkedKilled errors

(cherry picked from commit 58f10d61febed3a09305d8186101794fe154100f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/abdcecd53b1c68fd32624c03bf4d43c7b6bb44d4

Comment by Githook User [ 28/Apr/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-46841 Make PeriodicRunner interrupt blocked operations on stop

(cherry picked from commit ef75364ada70eaf4a096ed07adfeb3175abd719b)
Branch: v4.4
https://github.com/mongodb/mongo/commit/dfaf95cc1b3c0388371874191e0be30545a7d4e8

Comment by Githook User [ 24/Mar/20 ]

Author:

{'email': 'amirsaman.memaripour@mongodb.com', 'name': 'Amirsaman Memaripour', 'username': 'samanca'}

Message: SERVER-46841 Make PeriodicRunner users properly handle ClientMarkedKilled errors
Branch: master
https://github.com/mongodb/mongo/commit/58f10d61febed3a09305d8186101794fe154100f

Comment by Githook User [ 24/Mar/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'username': 'samanca', 'email': 'amirsaman.memaripour@mongodb.com'}

Message: SERVER-46841 Make PeriodicRunner interrupt blocked operations on stop
Branch: master
https://github.com/mongodb/mongo/commit/ef75364ada70eaf4a096ed07adfeb3175abd719b

Generated at Thu Feb 08 05:12:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.