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

Fix lifetime of timers in refineCollectionShardKey transaction callback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc4, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding 2022-05-02
    • 135

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: