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

Insert operations to collections system.profile and system.namespaces finished successful, but new data didn't appeared there

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Shell
    • Environment:
      Windows 7 x64, Windows Server 2008 R2 x64, Ubuntu 11.04 x64

      Insert operations to collections system.profile and system.namespaces finished successful, but new data didn't appeared there. I think it would be good if an exception would be thrown here.

      $ mongo
      MongoDB shell version: 2.0.2
      connecting to: test
      > use newdb
      switched to db newdb
      > db.getCollectionNames()
      [ ]
      > db.tmp.insert({"field": "value"})
      > db.getCollectionNames()
      [ "system.indexes", "tmp" ]
      > db.system.namespaces.find()
      { "name" : "newdb.tmp" }
      { "name" : "newdb.system.indexes" }
      { "name" : "newdb.tmp.$_id_" }
      > db.system.namespaces.insert({"name": "newdb.newtmp"})
      > db.system.namespaces.find()
      { "name" : "newdb.tmp" }
      { "name" : "newdb.system.indexes" }
      { "name" : "newdb.tmp.$_id_" }
      
      
      > db.setProfilingLevel(2)
      { "was" : 0, "slowms" : 100, "ok" : 1 }
      > db.system.profile.insert({"field": "value"})
      > db.system.profile.find()
      { "ts" : ISODate("2012-01-06T13:30:46.592Z"), "op" : "insert", "ns" : "newdb.system.profile", "millis" : 0, "client" : "127.0.0.1", "user" : "" }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            uladzimir_mihura@epam.com Uladzimir Mihura
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: