Using sentinel LSNs causes integer overflow in PALite

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: PALite
    • None
    • Storage Engines - Foundations
    • 137.335
    • None
    • None

      While working on WT-17594, I noticed that there was some logic when calling get_page_ids that would map an "unknown" checkpoint LSN to INT_MAX when deciding which LSN's pages to ask for. This didn't make sense, since the get_page_ids signature specifically takes a uint64_t, so we could easily have larger, valid values than that.

      I changed the INT_MAX to WT_PAGE_LOG_LSN_MAX and test_layered_checkpoint09 started failing. The problem is that SQLite stores integers as a signed 64-bit value, so there's an impedance mismatch there with the PALI interface that needs to be resolved.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Will Korteland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: