Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12217

repairDatabase() floods the log with recursive lock warning messages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.5.4
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Run "repairDatabase" command on a non-empty database

      Show
      Run "repairDatabase" command on a non-empty database

      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 } } }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redbeard0531 Mathias Stearn
              Reporter:
              milkie Eric Milkie
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: