[SERVER-16524] Unable to do system.namespace collection counts with new storage enginers Created: 12/Dec/14  Updated: 12/Dec/14  Resolved: 12/Dec/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.8.0-rc2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Christian Amor Kvalheim Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-16521 Make listCollections() an aggregation... Backlog
Related
is related to SERVER-14707 listCollections and listIndexes comma... Closed
Operating System: ALL
Steps To Reproduce:

with mmap this returns the number of collections on wired tiger as expected it returns nothing.

> db.system.namespaces.find()

{ "name" : "b.system.indexes" } { "name" : "b.t.$_id_" } { "name" : "b.t" }

> db.system.namespaces.find(

{name: "b.t"}

)

{ "name" : "b.t” }

> db.system.namespaces.count(

{name: "b.t"}

)
1

Participants:

 Description   

One of the things we cannot do after changing to use listCollections is to return counts of the number of collections for a given filter which we currently support in mmap.

> db.system.namespaces.find()

{ "name" : "b.system.indexes" } { "name" : "b.t.$_id_" } { "name" : "b.t" }

> db.system.namespaces.find(

{name: "b.t"}

)

{ "name" : "b.t” }

> db.system.namespaces.count(

{name: "b.t"}

)
1


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