[SERVER-45954] improve index-related invariant messages in durable_catalog_impl.cpp Created: 04/Feb/20  Updated: 29/Oct/23  Resolved: 07/Feb/20

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

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-02-10
Participants:
Linked BF Score: 10

 Description   

Occasionally, we would observe Invariant failures in durable_catalog_impl.cpp, such as this, in some fuzzer test suites. These invariants are typically found in the CRUD write code paths with very minimal context logging. A sample invariant failure would show up in the logs as follows:

2020-01-30T16:19:19.297+0000 F - [conn615] Invariant failure offset >= 0 src/mongo/db/storage/durable_catalog_impl.cpp 1045

It would be beneficial for build failure diagnostics to include some identifying information such as:

  • catalog metadata
  • catalog id (also known as record id).
  • index name, if applicable


 Comments   
Comment by Githook User [ 07/Feb/20 ]

Author:

{'username': 'benety', 'name': 'Benety Goh', 'email': 'benety@mongodb.com'}

Message: SERVER-45954 add metadata to invariant message for DurableCatalogImpl index operations
Branch: master
https://github.com/mongodb/mongo/commit/600055928af06dbf4b8e01e90e84ce564aa5aeb0

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