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

history store file size not set on file open

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.0 Required
    • Component/s: None
    • Labels:
      None

      Description

      It has been observed in FTDC charts that if the history store is large, and then a restart happens, there is a clear gap where the history store file size is reported as 0. Then it jumps back up to its former pre-restart size.

      The statistic in question is, from dist/stat_data.py:

      CacheStat('cache_hs_ondisk', 'history store table on-disk size', 'no_clear,no_scale,size'),
      

      Currently this is only set in wt_hs_insert_updates:

          WT_STAT_CONN_SET(session, cache_hs_ondisk, hs_size);
      

      This ticket should add in setting that statistic when we open the history store file on restart. The file may or may not exist yet, but if it does, then we should get the size and set this statistic value early.

      Otherwise the value stays at 0 until more/new entries are added to the history store and that does not reflect the actual size of the file until then.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            sue.loverso Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: