Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-73174

Replace invariant with tassert in PlanStages code

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution

    Description

      We should only replace invariants if the operation can report an error to the users cleanly and does not impact any subsequent operations. A few examples where this won't be the case is when the invariant it based on a state that is not limited to the current operation, like a lock state, collection catalog state etc. Additionally, if the invariant is to protect against a memory leak, we cannot replace it with a tassert.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: