[SERVER-8266] deadlock in touch command Created: 22/Jan/13  Updated: 11/Jul/16  Resolved: 22/Jan/13

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

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

touch_pages grabs read lock and then MongoFilesShared, and then TempReleases the read lock.

journal thread grabs read lock and then MongoFilesExclusive (on Windows).

journal thread blocks waiting for MongoFilesExclusive, while touch_pages thread blocks waiting to relock the read lock when TempRelease goes out of scope.



 Comments   
Comment by auto [ 22/Jan/13 ]

Author:

{u'date': u'2013-01-22T16:43:52Z', u'email': u'milkie@10gen.com', u'name': u'Eric Milkie'}

Message: SERVER-8266 fix deadlock between MongoFiles and DBRead lock
Branch: master
https://github.com/mongodb/mongo/commit/e351361ed10632a26ef8498e66014f746615b18d

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