[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: |
|
||||||||||||||||||||||||
| 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: (cherry picked from commit ef75364ada70eaf4a096ed07adfeb3175abd719b) |
| Comment by Githook User [ 28/Apr/20 ] |
|
Author: {'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}Message: (cherry picked from commit 58f10d61febed3a09305d8186101794fe154100f) |
| Comment by Githook User [ 28/Apr/20 ] |
|
Author: {'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}Message: (cherry picked from commit 58f10d61febed3a09305d8186101794fe154100f) |
| Comment by Githook User [ 28/Apr/20 ] |
|
Author: {'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}Message: (cherry picked from commit ef75364ada70eaf4a096ed07adfeb3175abd719b) |
| Comment by Githook User [ 24/Mar/20 ] |
|
Author: {'email': 'amirsaman.memaripour@mongodb.com', 'name': 'Amirsaman Memaripour', 'username': 'samanca'}Message: |
| Comment by Githook User [ 24/Mar/20 ] |
|
Author: {'name': 'Amirsaman Memaripour', 'username': 'samanca', 'email': 'amirsaman.memaripour@mongodb.com'}Message: |