Assertion failure hit on checkpoint size

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Not Applicable
    • None

      While creating a regression test for WT-16974, I have uncovered a potential bug with interaction between sweep server and calculation of checkpoint size.

      The assertion error is as follows:

                  /*
                   * For disaggregated storage, save the total bytes to the checkpoint size field. Track
                   * the delta between this checkpoint and the previous one, this delta will be applied to
                   * the database level size once the checkpoint succeeds.
                   */
                  if (F_ISSET(btree, WT_BTREE_DISAGGREGATED)) {
                      WT_ASSERT(session, ckpt->size == __wt_atomic_load_uint64(&btree->bytes_total));
                      session->ckpt.ckpt_size_delta += (int64_t)ckpt->size - (int64_t)prev_ckpt_size;
                  } 

      I have attached reproducer for this issue.

       

        1. layered79.py
          4 kB
          Jie Chen

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: