[SERVER-12217] repairDatabase() floods the log with recursive lock warning messages Created: 30/Dec/13  Updated: 30/Dec/13  Resolved: 30/Dec/13

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

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

Issue Links:
Duplicate
duplicates SERVER-8412 repairDatabase: no Cloner, and use mu... Closed
Operating System: ALL
Steps To Reproduce:

Run "repairDatabase" command on a non-empty database

Participants:

 Description   

The last phase of the index builds, as part of repairDatabase, attempt to yield, but for some reason we have locked twice (possibly the global + the new db's write lock?)

2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.936-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.940-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.940-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.940-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }
2013-12-30T16:30:41.940-0500 [conn2] warning: ClientCursor::yield can't unlock b/c of recursive lock ns:  top: { opid: 23, active: true, secs_running: 4, op: "query", ns: "test", query: { repairDatabase: 1.0 }, client: "127.0.0.1:35931", desc: "conn2", threadId: "0x7fde740ad700", connectionId: 2, locks: { ^: "W" }, waitingForLock: false, msg: "index: (3/3) btree-middle", numYields: 0, lockStats: { timeLockedMicros: {}, timeAcquiringMicros: { R: 0, W: 1 } } }



 Comments   
Comment by Eliot Horowitz (Inactive) [ 30/Dec/13 ]

Believe this is SERVER-8412

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