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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Sharding 2021-10-04
    • 132
    • 1

      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. 

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

              Created:
              Updated:
              Resolved: