[SERVER-63255] dbStats reports different fields depending on whether a database exists Created: 03/Feb/22  Updated: 29/Oct/23  Resolved: 16/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Yujin Kang Park
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-03-21
Participants:

 Description   

dbStats reports one set of fields when a database exists and a different set of fields when it does not.

These two sets of fields should be the same. Notably, when the database is empty, we do not show "freeStorageSize", "indexFreeStorageSize", or "totalFreeStorageSize"



 Comments   
Comment by Githook User [ 16/Mar/22 ]

Author:

{'name': 'Yu Jin Kang Park', 'email': 'yujin.kang@mongodb.com', 'username': 'ykangpark'}

Message: SERVER-63255 Fix dbStats output for non-existing database to match existing database output fields
Branch: master
https://github.com/mongodb/mongo/commit/539165defa601981015f0e89eba9a0d957c3b031

Comment by Connie Chen [ 08/Feb/22 ]

We should also add comments to make sure we don't miss updating both files in the future.

Generated at Thu Feb 08 05:57:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.