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

Remove kOutstandingAdditionalParticipant readOnly value

    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0
    • Cluster Scalability 2024-4-29, Cluster Scalability 2024-5-13, Cluster Scalability 2024-5-27, Cluster Scalability 2024-6-10, Cluster Scalability 06/24/24
    • 200

      The original motivation for adding the readOnly value `kOutstandingAdditionalParticipant` to the TransactionRouter was to prevent ever choosing a read-optimized commit path in the event an additional participant did a write on a getMore request, but the shard that added the participant responded back to the parent router before hearing of the write. Today, we don't actually allow writes in transactions in getMores, so this was an extra layer of protection - SERVER-88515 made it so that the getMore command will fatally fail if a write is done while in a transaction, so the special readOnly value and handling in the transaction router isn't necessary.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: