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

config.transactions cloner for resharding must not ignore records for multi-document transaction

    • Fully Compatible
    • ALL
    • Sharding 2020-11-16

      It is possible for a retryable write to be upconverted to a multi-document transaction when a document's shard key value is being modified and would change owning shards. The resulting config.transactions record must be migrated to the recipient shard to prevent the retryable write from being re-executed as a retryable write. The retryable write is instead expected to fail with an IncompleteTransactionHistory error response.

      The {state: {$exists: false}} filter was removed from session_catalog_migration_source.cpp as part of SERVER-40475 after being added by SERVER-38844. It should be similarly removed from createConfigTxnCloningPipelineForResharding().

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

              Created:
              Updated:
              Resolved: