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

db.system.namespaces not registering existing collections

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Storage
    • Labels:
      None
    • ALL
    • Hide
      db.a.insert({'a':1})
      show collections
      db.system.namespace.find()
      

      show collections shows the created collection
      system.namespaces.find() does not

      Show
      db.a.insert({'a':1}) show collections db.system.namespace.find() show collections shows the created collection system.namespaces.find() does not

      Running mongod-2.8.0-rc1-pre- I find that the db.system.namespaces collection is not showing existing collection:

      nair(mongod-2.8.0-rc1-pre-) MongoMKDB> show collections
      blobs               4.433MB / 4.113MB
      nair(mongod-2.8.0-rc1-pre-) MongoMKDB> db.system.namespaces.count()
      0
      nair(mongod-2.8.0-rc1-pre-) MongoMKDB> db.system.namespaces.find()
      Fetched 0 record(s) in 0ms
      
      

      I found this through running some tests with the java driver (and other drivers do the same) who pings the database on system.namespaces to find all existing collections.

            Assignee:
            Unassigned Unassigned
            Reporter:
            norberto.leite Norberto Fernando Rocha Leite (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: