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

[Upgrade/downgrade] Avoid checking internal transactions feature flag more than once when constructing transaction oplog entries and config.transactions entry

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding 2021-10-04
    • 132
    • 1

    Description

      Currently, we check the feature flag for internal transactions twice when committing a transaction (once to decide if we should add the txnRetryCounter to the applyOps oplog entry and once to decide if we should add the txnRetryCounter to the config.transactions entry) and the FCV can change between those checks, and this can cause the config.transactions entry on the primary to be inconsistent with the config.transactions entries on secondaries. 

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: