[SERVER-1422] Cannot list databases while an fsync and lock is in place Created: 15/Jul/10  Updated: 12/Jul/16  Resolved: 15/Jul/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.4.2
Fix Version/s: 1.5.5

Type: Bug Priority: Major - P3
Reporter: Adam Fields Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux, 64-bit


Operating System: ALL
Participants:

 Description   

When a slave is fsync-and-locked, attempting to show dbs hangs. Examining currentOp while this happens shows it to be waiting for lock:

{
"opid" : xxxxxxxxx,
"active" : false,
"lockType" : "write",
"waitingForLock" : true,
"op" : "query",
"ns" : "?dmin.$cmd",
"query" :

{ "listDatabases" : 1 }

,
"client" : "127.0.0.1:48470",
"desc" : "conn"
},



 Comments   
Comment by auto [ 15/Jul/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: listDatabases only needs a read lock SERVER-1422
http://github.com/mongodb/mongo/commit/ef19610facb93cd1ed68e11f78a1aa02e55e2d81

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