Don't reset logical session cache reaper metrics on beginning reap

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • v8.2, v8.0, v7.0, v6.0
    • Repl 2025-12-22
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In the reaper thread we reset these metrics on the beginning of the reap thread. This can cause an issue where we are never able to see the actual reported metrics in T2.

      The periodic job scheduler will attempt to run the function once per time interval, if the reaper thread takes longer than the scheduled interval the reaper function will be called immediately once the previous iteration has finished. When we reset the values here that means we are never able to report the previous iterations values in T2, which leads to an observability gap. We saw this recently in a HELP ticket which made debugging difficult

      I am proposing that we instead opt out of resetting the metrics here, and report the previous runs values until we finish the next run. There is a metric transactionReaperJobCount that indicates when the reaper thread has started, so we still know when a new reap has begun.

            Assignee:
            Indy Prentice
            Reporter:
            Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: