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

write activity not reflected in output of "top"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Diagnostics
    • Labels:
      None
    • Fully Compatible
    • ALL

      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)
      

            Assignee:
            martin.bligh Martin Bligh
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: