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

Remove kOutstandingAdditionalParticipant readOnly value

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 8.0 Required
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Cluster Scalability
    • ALL
    • v8.0
    • Cluster Scalability 2024-4-29, Cluster Scalability 2024-5-13

      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:
            3 Start watching this issue

              Created:
              Updated: