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

Show collections returns empty list

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.8.0-rc1
    • Admin, Shell
    • CentOS 6
    • Linux
    • Hide

      1. Create table and collection
      2. run "show tables" in shell

      Show
      1. Create table and collection 2. run "show tables" in shell

    Description

      When running show collections (show tables, db.getCollectionNames()), the result is always empty (on sharded, as well as non-sharded collections). However I can verify the collections existence by getting a cursor on its data (db.collection.find())m which works just fine.

      The setup is a sharded testsetup with 3 shards, each having an arbiter, three config servers and a mongos. The problem occurs on the mongos as well as on individual shards.

      Attachments

        Activity

          People

            Unassigned Unassigned
            juwi Julian Wissmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: