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

db.system.namespaces not registering existing collections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: 2.8.0-rc0
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: