[SERVER-75303] Server status does full copy of all drop-pending idents under mutex Created: 27/Mar/23  Updated: 29/Oct/23  Resolved: 28/Mar/23

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

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

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2023-04-03
Participants:

 Description   

When we report the number of drop-pending idents in storageEngine serverStatus section, we build a set of every ident name, only to count the result. We also do this while blocking any idents from being dropped.

I've seen customers with drop-pending idents in the hundreds of thousands, and this would probably explain poor performance that they saw. As the number of idents grows, the longer we hold that mutex, which further delays ident drops...



 Comments   
Comment by Githook User [ 28/Mar/23 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-75303 Report drop-pending idents in serverStatus more efficiently
Branch: master
https://github.com/mongodb/mongo/commit/a6ac9a1fe19da49b7067e802bf498d7fc0dcb5af

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