Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101088

Reap the in-memory transaction table

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2025-03-03, Repl 2025-03-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently we periodically reap the config.transaction table by deleting the entries whose corresponding sessions are expired.

      Here is the code path:

      LogicalSessionCacheImpl::_reap ==>_reapSessionsOlderThanFn ==> MongoDSessionCatalog::reapSessionsOlderThan ==>removeExpiredTransactionSessionsFromDisk ==> removeSessionsTransactionRecordsIfExpired ==>
      removeSessionsTransactionRecordsFromDisk

      The last function deletes the entries form the config.transactions table.

      This ticket should keep the current code, but when the feature flag is on (similar to here), additionally delete the entries from the in-memory transaction table.

            Assignee:
            joseph.obaraye@mongodb.com Joseph Obaraye
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: