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

Optimize scanning SessionCatalog when refreshing retryable writes from storage

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc7, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding NYC 2022-05-30

      To support retryable writes that execute statements as transactions, when refreshing a retryable write from storage, we scan the session catalog for the highest txnNumber for that session. Scanning the catalog locks it, so we should optimize this scan to leverage the changes from SERVER-62479 to store all child sessions with their parent to either only scan those children or to scan no sessions by caching the highest txnNumber of any child directly with each parent session.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: