[SERVER-16956] db.stats() does not show indexes or indexSize correctly for WT Created: 20/Jan/15  Updated: 20/Jan/15  Resolved: 20/Jan/15

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

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Unassigned
Resolution: Done Votes: 0
Labels: wiredtiger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

With WT:

> db.stats(1024*1024*1024)
{
	"db" : "ycsb",
	"collections" : 1,
	"objects" : 29799900,
	"avgObjSize" : 150.8795339917248,
	"dataSize" : 4.187407926656306,
	"storageSize" : 7.79156494140625,
	"numExtents" : 0,
	"indexes" : 1,
	"indexSize" : 0.6202392578125,
	"ok" : 1
}
> db.usertable.stats()
{
	"ns" : "ycsb.usertable",
	"count" : 29799900,
	"size" : 4496195025,
	"avgObjSize" : 150,
	"storageSize" : 8366129152,
	"capped" : false,
	"wiredTiger" : {
    [ ... ]
	},
	"totalIndexSize" : 665976832,
	"indexSizes" : {
		"_id_" : 665976832
	},
	"ok" : 1
}

Not sure why indexes aren't showing up on the DB level since they show up in the collection fine.


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