improve index-related invariant messages in durable_catalog_impl.cpp

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Execution Team 2020-02-10
    • 10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Benety Goh
            Reporter:
            Benety Goh
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: