Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9879

Fix overcounting of session txn dirty bytes statistic

    • 2
    • Storage Engines - 2022-10-17
    • v6.0, v5.0

      The WT_STAT_SESSION_TXN_BYTES_DIRTY statistic appears to be overcounting compared to other cache statistics such as cache_bytes_updates.

      The reason is that the statistic is updated in wt_cache_page_inmem_incr without checking the page type so it is also counting changes to internal pages. That puts the value out of line with cache_bytes_updates.

      The fix is that the session statistic increment should be put under the if (!WT_PAGE_IS_INTERNAL(page) && !btree->lsm_primary) conditional just below its existing line.

            Assignee:
            ruby.chen@mongodb.com Ruby Chen
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: