[SERVER-5509] Concurrency build hanging on background.js Created: 05/Apr/12  Updated: 11/Jul/16  Resolved: 05/Apr/12

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: None
Fix Version/s: 2.1.1

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

Nightly Linux 64-bit concurrency


Operating System: ALL
Participants:

 Description   

http://buildbot.mongodb.org/builders/Nightly%20Linux%2064-bit%20concurrency/builds/0/steps/test_1/logs/stdio



 Comments   
Comment by auto [ 05/Apr/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4328 SERVER-5509 fix deadlock in runExclusively

A deadlock was seen in slowNightly/background.js.
The dur thread was blocked waiting on X's condvar.
Meanwhile, another thread had finished its work and
released its w lock (rather than calling runExclusively);
however, the code does not signal X's condvar for that case,
and thus the dur thread never woke up to notice that X.n
and w.n counts were the same.
Branch: master
https://github.com/mongodb/mongo/commit/b987d96067b24e4d1eb6dede4c204f2dc0db8f57

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