[SERVER-43701] WiredTiger::endBackup could race with clean shutdown Created: 27/Sep/19  Updated: 29/Oct/23  Resolved: 04/Oct/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-10-07
Participants:
Linked BF Score: 56

 Description   

Clean shutdown will close the WiredTiger connection which unconditionally closes all the sessions, including the one used for backup. Therefore, if WiredTiger::endBackup races with clean shutdown and tries to close the session that is already closed by clean shutdown, a segfault will happen.



 Comments   
Comment by Githook User [ 04/Oct/19 ]

Author:

{'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao'}

Message: SERVER-43701 Fix race condition between endBackup and cleanShutdown
Branch: master
https://github.com/mongodb/mongo/commit/658b49389bd5bdf1112b81707e683cf6d8203a6e

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