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

reap_sessions_with_active_yielders.js should wait for replication after manually removing a session

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc16
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • Cluster Scalability 2024-07-22
    • 0

      reap_sessions_with_active_yielders.js tests that if a logical session expires while a transaction router is yielded, that prevents reaping the in-memory transaction state for that router's session. It simulates expiration by manually deleting from config.transactions with the default write concern, which can trigger the scenario from SERVER-92718 if a logical session cache refresh later reads from a stale secondary and does not see the deletion. The test is failing frequently enough and isn't meant to test the logic in SERVER-92718, so we should avoid failures by making it wait for the manual delete to replicate to all nodes before continuing the test.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: