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

Unset disallowSingleWriteShardCommit when resetting transaction router state

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • v8.1, v8.0
    • ClusterScalability Mar17-Mar31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-84796 disabled the single write shard commit optimization for updates that change a document's shard key value and move it across shards. It does so by setting a flag on the TransactionRouter before running the update shard key transaction. That flag is never unset though, so future transactions using that TransactionRouter (ie same logical session and same mongos instance) cannot use the optimization. Instead, we should unset the flag when resetting the TransactionRouter state here.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None