[SERVER-62697] Add test to verify dbstats doesn't open too many files Created: 18/Jan/22  Updated: 22/May/23  Resolved: 22/May/23

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

Type: Improvement Priority: Major - P3
Reporter: Daniel Gomez Ferro Assignee: Backlog - Storage Execution Team
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Participants:

 Description   

SERVER-50756 caused a performance regression ( SERVER-62277 ) because it made dbstats open all collections.

We could add a regression test to make sure dbstats (and possibly other monitoring commands) don't open too many handles/files:

  1. Start up fresh mongod
  2. Create ~100 collections
  3. Restart mongod
  4. Run dbstats (and possibly others)
  5. Make sure "connection data handles currently active" and "files currently open" are below some threshold

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