ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Block Manager
    • None
    • Storage Engines - Persistence
    • 8,758.303
    • StorEng - Defined Pipeline
    • None

      WT-15214 fixed the consistency issue with the WT_PAGE_ENCRYPTED flag.

      The objective of this ticket is to ensure the same consistency for the WT_PAGE_COMPRESSED flag. It should either always match the compressed state of the page (both in memory and on storage) or, if it doesn't, that behaviour should be clearly documented.

      Today the two flags behave differently on read: WT_PAGE_ENCRYPTED is cleared once the block is decrypted, but WT_PAGE_COMPRESSED survives decompression - both decompression paths copy the first WT_BLOCK_COMPRESS_SKIP bytes, page header and flags included, into the decompressed image, so an in-memory page still claims to be compressed on disk.

      Any decision here has to account for the flag's other producers and consumers: the victim cache sets it via __wt_bm_compress in the eviction path, the disagg write path tests it, the debug dump paths test it, and verification clears it from the image it checks.

      (The file moved from block_cache/block_io.c to block_mgr/block_io.c in WT-18875, merged to develop via WT-19017. The rename is why the summary previously named the old path, and why this is rerouted rather than closed with the block-cache removal.)

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

              Created:
              Updated: