Guard __clayered_cursor_compare against unpositioned cursor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0, 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: Cursors
    • None
    • Storage Engines - Foundations
    • 190.587
    • Storage Execution 2026-05-11
    • None

      I ran into this assertion when running test/format locally.

      [1777801688:678521][322530:0xe2b905759100], t, layered:T00003, WT_CURSOR.next: [WT_VERB_DEFAULT][ERROR]: int __clayered_cursor_compare(WT_CURSOR_LAYERED *, WT_CURSOR *, WT_CURSOR *, int *), 101: WiredTiger assertion failed: '((((c1)->flags) & ((0x001000000ull | 0x002000000ull))) != 0) && ((((c2)->flags) & ((0x001000000ull | 0x002000000ull))) != 0)'. Can only compare cursors with keys available in layered tree

            Assignee:
            Wei Hu
            Reporter:
            Wei Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: