[SERVER-33875] Add more useful logging to IndexCatalogImpl::numIndexesReady Created: 14/Mar/18  Updated: 29/Oct/23  Resolved: 15/Mar/18

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

Type: Improvement 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
Sprint: Storage NYC 2018-03-26
Participants:

 Description   

We should add more logging when comparing the number of indexes reported by the index catalog entry and the collection catalog. This assertion can fail in debug builds when calling IndexCatalogImpl::numIndexesReady(), by collStats for example.

This failure has been seen in debug builds and would be easier to diagnose the root cause if we had more useful index information. We should log both sets of indexes in debug builds when this condition is not met before exiting.



 Comments   
Comment by Githook User [ 14/Mar/18 ]

Author:

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

Message: SERVER-33875 Add more useful logging to IndexCatalogImpl::numIndexesReady
Branch: master
https://github.com/mongodb/mongo/commit/11f4ea91fd3f177af96da6250f998e8bd9825b67

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