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

[Upgrade/downgrade] Do not persist txnRetryCounter if value is default

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding 2021-11-29, Sharding 2021-12-13, Sharding 2021-12-27, Sharding 2022-01-10, Sharding 2022-01-24
    • 2

      • Make the OperationContext not set the txnRetryCounter for multi-document transactions to 0 by default. That is, if the client does not provide a txnRetryCounter, its value should be on the OperationContext boost::none. 
      • Make TransactionParticipant and TransactionCoordinator have a way to track if the txnRetryCounter of multi-document transaction is client-specified or the default. 

      This is required by SERVER-61088 where we only want to persist txnRetryCounter if the txnRetryCounter is initialized.

            Assignee:
            jason.zhang@mongodb.com Jason Zhang (Inactive)
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: