[SERVER-16361] Show collections returns empty list Created: 01/Dec/14  Updated: 01/Dec/14  Resolved: 01/Dec/14

Status: Closed
Project: Core Server
Component/s: Admin, Shell
Affects Version/s: 2.8.0-rc1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Julian Wissmann Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: wiredtiger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 6


Issue Links:
Duplicate
duplicates SERVER-15987 listCollections and getIndexes empty ... Closed
Operating System: Linux
Steps To Reproduce:

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

Participants:

 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.



 Comments   
Comment by Ramon Fernandez Marina [ 01/Dec/14 ]

You're welcome juwi. Please let us know if you run into other issues with the 2.8.0 release candidates.

Regards,
Ramón.

Comment by Julian Wissmann [ 01/Dec/14 ]

Yes indeed! Shell Versoin 2.6.4. So basically I forgot replacing the shell. My bad, then.

Thanks for the quick resolution!

Comment by Ramon Fernandez Marina [ 01/Dec/14 ]

Can you please check the version of the shell you're using? There's a known issue (SERVER-15987) where listCollections returns empty when an old version of the shell is used.

Generated at Thu Feb 08 03:40:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.