Create a test to cover invalid path involving checkpoint cursors and bulk cursors

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cursors
    • None
    • Storage Engines - Foundations
    • None
    • None

      I could not find any test covering this error path:

          /*
           * We should have already set up the checkpoint cursor snapshot to read the history store unless
           * we are reading the history store checkpoint cursor directly. Check whether we are already in
           * a checkpoint cursor transaction.
           */
          if (!F_ISSET(session->txn, WT_TXN_IS_CHECKPOINT) && WT_READING_CHECKPOINT(session)) {
              /* Checkpoint cursor. */
              if (bulk)
                  /* Fail now; otherwise we fail further down and then segfault trying to recover. */
                  WT_RET_MSG(session, EINVAL, "checkpoints are read-only and cannot be bulk-loaded");
      

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: