Fix reserve operation when using layered cursor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Cursors
    • None
    • Storage Engines, Storage Engines - Foundations
    • SE Foundations - 2025-07-04, SE Foundations - 2025-07-18
    • 3

      Failure:

       [2025/06/10 14:55:22.272] Iteration 1/1
       [2025/06/10 14:55:22.272] t: process 168012 running
       [2025/06/10 14:55:22.272] 0x726b3fc63a60:[1749531322:272595][168012:0x7f7df5595300], t, txn-recover: [WT_VERB_RTS][WARNING]: skipped recovery RTS due to disagg
       [2025/06/10 14:55:22.306] 0x726b3fc62000:[1749531322:306353][168012:0x7f7df5595300], t, WT_CONNECTION.close: [WT_VERB_RTS][WARNING]: skipped shutdown RTS due to disagg
       [2025/06/10 14:55:22.336] 0x726b3fc63a60:[1749531322:335957][168012:0x7f7df5595300], t, txn-recover: [WT_VERB_RTS][WARNING]: skipped recovery RTS due to disagg
       [2025/06/10 14:56:32.654]   ./t -R $format_args
       [2025/06/10 14:56:32.654] done
       [2025/06/10 14:56:32.654] [1749531392:654539][168012:0x7f7d62a2e700], t, file:wt.wt_stable, WT_CURSOR.reserve: [WT_VERB_DEFAULT][ERROR]: __clayered_lookup, 1161: WiredTiger assertion failed: '((((clayered)->flags) & (0x10u)) != 0) && clayered->stable_cursor != ((void *)0)'. Expression returned false
       [2025/06/10 14:56:32.654] [1749531392:654722][168012:0x7f7d62a2e700], t, file:wt.wt_stable, WT_CURSOR.reserve: [WT_VERB_DEFAULT][ERROR]: __wt_abort, 29: aborting WiredTiger library
       [2025/06/10 14:56:34.250] bash: line 44: 168012 Aborted                 (core dumped) ./t -c ../../../test/format/CONFIG.disagg $format_args
       [2025/06/10 14:56:34.250] Command 'shell.exec' in function 'format test disagg' (step 3 of 3) failed: shell script encountered problem: exit code 134.
      

      Currently the test/format running has a failure layered cursor failure.

      assert line that gets hit:

              /* Be sure we'll make a search attempt further down.  */
              WT_ASSERT(
                session, F_ISSET(clayered, WT_CLAYERED_OPEN_READ) && clayered->stable_cursor != NULL);
      

        1. image-2025-07-01-12-18-34-818.png
          394 kB
          Jie Chen
        2. image-2025-07-01-12-18-51-670.png
          417 kB
          Jie Chen

            Assignee:
            Jie Chen
            Reporter:
            Jie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: