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

WiredTigerSessionCache::getSession() can read stale value of shutting-down state

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.4
    • Affects Version/s: 7.0.6, 5.0.25, 6.0.14, 8.0.0-rc0, 7.3.0-rc2
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0, v5.0
    • Execution Team 2024-09-02
    • 0

      WiredTigerRecoveryUnit::setPrefetch() involves getting (or creating) a WiredTiger session which has an invariant that asserts that the WiredTigerSessionCache has not been shut down. However, this invariant is currently reachable since:

      • The WiredTigerSessionCache is shut down not only during shuts down but also during replication rollback (here).
      • WiredTigerRecoveryUnit::setPrefetch() is used by the validate command which is supported on secondaries so it can continue to run after the node becomes a secondary and starts doing rollback.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: