Add metrics for tracking RTS processed tree

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • WT12.0.0, 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: RTS
    • None
    • Storage Engines, Storage Engines - Persistence
    • SE Persistence - 2025-10-10, SE Persistence - 2025-10-24
    • None

      RTS should only perform rollback operations on a file if:
       
      1. The dhandle is present in the cache and tree is modified.
      2. The checkpoint durable start/stop timestamp is greater than the rollback timestamp.
      3. The checkpoint has prepared updates written to disk.
      4. The checkpoint newest txn is greater than checkpoint snapshot min txn id.
       
      So not every tree will be processed, it would be helpful for us to have a metric tracking number of trees processed and number of trees skipped. This will help us understand how many files were actually processed during RTS. This metric can be tracked in __wti_rts_btree_walk_btree_apply, here.

        1. screenshot-1.png
          101 kB
          Albert Song

            Assignee:
            Albert Song
            Reporter:
            Jasmine Bi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: