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

Relax restriction that changing a document's shard key value must have a transaction number

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding NYC
    • Fully Compatible
    • Sharding 2022-07-11, Sharding 2022-07-25, Sharding 2022-08-08
    • 151

      Updates/findAndModifies that change a document's shard key value require the user ran the operation in a retryable write or transaction so there's either an active transaction or a transaction number to use for a spawned internal transaction that atomically deletes and inserts the document. We can now use the transaction API to remove this restriction, since writes without a transaction number will create an internal session for the transaction so there's no need to reuse a client provided transaction number.

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: