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