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

Fix lifetime of timers in refineCollectionShardKey transaction callback

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

      refineCollectionShardKey uses the transaction API and captures a struct of timers by reference for the API's callback, but the callback runs on an executor so may run after the calling context has gone out of scope after an interruption, like at stepdown.

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

              Created:
              Updated:
              Resolved: