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

Commit handler in fCV op observer is susceptible to interruption

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0, 7.0.5, 6.0.13, 5.0.24
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0
    • Sharding EMEA 2023-10-30, CAR Team 2023-11-13
    • 105

      When an FCV op observer observes an insert or an update to the admin.system.version collection, it registers a commit handler to set the FCV version. However this logic can throw an exception if it gets interrupted, for instance if a stepdown occurs. In particular, the call to killSessionsAbortUnpreparedTransactions ends up calling OperationContext::waitForConditionOrInterrupt. This is an issue because commit/rollback handlers are not allowed to throw exceptions.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: