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

write activity not reflected in output of "top"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc3
    • Component/s: Diagnostics
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      Started at https://github.com/mongodb/mongo/commit/955f62adbd320f1ef725572cf7b935880facab7e

      Here's a test to reproduce:

      db.getSiblingDB("test").getCollection("test").insert({x:1})
      before = db.adminCommand('top').totals['test.test'].writeLock
      for(var i=0;i<1000;i++){
      	db.getSiblingDB("test").getCollection("test").insert({x:i})
      }
      after = db.adminCommand('top').totals['test.test'].writeLock
       
      assert.gt(after.count, before.count)
      assert.gt(after.time, before.time)
      

        Attachments

          Activity

            People

            Assignee:
            martin.bligh Martin Bligh
            Reporter:
            mpobrien Michael O'Brien
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: