Eagerly reap config.transactions entries for retryable sessions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc9, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0
    • Sharding NYC 2022-06-13
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Sessions spawned to run transactions for retryable writes encode the write's txnNumber in their session id. When a new retryable write / transaction for that same session arrives with a higher txnNumber, previous sessions can no longer be used, so we are free to reap their config.transactions entries. This should be done more eagerly than waiting for the config.system.sessions entry to expire, since a long running session may run many retryable writes that could each require a transaction and create a config.transactions entry.

            Assignee:
            Jack Mulrow
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: