Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11470

Confusing and obsolete assert in __wt_txn_modify_block

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Storage Engines
    • 2023-12-12 - Heisenbug
    • 5

      Here's an assert in __wt_txn_modify_block:

                  /*
                   * The durable timestamp must be greater than or equal to the commit timestamp unless it
                   * is an in-progress prepared update.
                   */
                  WT_ASSERT(session,
                    upd->durable_ts >= upd->start_ts || upd->prepare_state == WT_PREPARE_INPROGRESS);
      

      I think the update can no longer be in the prepared state reaching here. If we do, the assert may fire if we resolve the prepared update concurrently.

            Assignee:
            luke.pearson@mongodb.com Luke Pearson
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: