Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-408

mongotop ignores all 'local*' and '*namespaces' namespaces

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc2
    • Affects Version/s: 2.8.0-rc1
    • Component/s: mongotop
    • None
    • Not Needed

      If you have a database that starts with the string local - mongotop ignores it. It also ignores any collection that ends in namespaces.

      To reproduce, create a database localized and insert into any collection. Also create a database, test and insert into a collection named namespaces. mongotop reports neither when run.

      shell

      (mongod-2.8.0-rc1) admin> use localized
      switched to db localized
      (mongod-2.8.0-rc1) localized> db.a.insert({})
      Inserted 1 record(s) in 74ms
      WriteResult({
        "nInserted": 1
      })
      (mongod-2.8.0-rc1) localized> use test
      switched to db test
      (mongod-2.8.0-rc0) test> db.namespaces.insert({})
      Inserted 1 record(s) in 67ms
      WriteResult({
        "nInserted": 1
      })

      2.6

      mongo-tools$ ~/mongodb/2.6.5/mongotop 
      connected to: 127.0.0.1
      
                                  ns       total        read       write		2014-11-24T19:45:49
                     test.namespaces         0ms         0ms         0ms
                         localized.a         0ms         0ms         0ms
                local.system.replset         0ms         0ms         0ms
                   local.startup_log         0ms         0ms         0ms
                admin.system.version         0ms         0ms         0ms
                  admin.system.roles         0ms         0ms         0ms

      2.8.0-rc1

      mongo-tools$ mongotop
                        ns    total    read    write    2014-11-24T14:46:50-05:00
      admin.system.version      0ms     0ms      0ms                             
        admin.system.roles      0ms     0ms      0ms       

            Assignee:
            mikeo@mongodb.com Michael O'Brien
            Reporter:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: