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

repairDatabase() floods the log with recursive lock warning messages

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.4
    • Component/s: Storage
    • None
    • ALL
    • Hide

      Run "repairDatabase" command on a non-empty database

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

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

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: