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

db.system.namespaces not registering existing collections

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical - P2 Critical - P2
    • None
    • 2.8.0-rc0
    • Storage
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: