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

listCollections and getIndexes empty on wiredtiger when using old shell

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL

      test7:PRIMARY> show collections
      test7:PRIMARY> db.a.insert({a:1})
      WriteResult({ "nInserted" : 1 })
      test7:PRIMARY> show collections
      test7:PRIMARY> db.a.find()
      { "_id" : ObjectId("545b6bba4cabb8d975e9e665"), "a" : 1 }
      { "_id" : ObjectId("545b6bba4cabb8d975e9e665"), "a" : 1 }
      Type "it" for more
      test7:PRIMARY> show collections
      test7:PRIMARY> db.adminCommand("listCollections")
      { "collections" : [ ], "ok" : 1 }
      test7:PRIMARY> use local
      switched to db local
      test7:PRIMARY> db.adminCommand("listCollections")
      { "collections" : [ ], "ok" : 1 }
      test7:PRIMARY> show collections
      test7:PRIMARY> db.oplog.rs.stats()
      {
      	"ns" : "local.oplog.rs",
      	"count" : 2097152,
      	"size" : 201326592,
      	"avgObjSize" : 96,
      	"storageSize" : 89,
      	"nindexes" : 0,
      	"capped" : true,
      	"max" : -1,
      	"maxSize" : 201326592,
      	"wiredtiger" : {
      		"uri" : "statistics:table:collection-6-2589753951712478342",
      		"LSM" : {
      ...
      

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: