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

Add a resharding utility function to determine whether a write should be run in a distributed transaction

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Sharding 2020-11-16, Sharding 2020-11-30

    Description

      Add a utility function to ScopedCollectionDescription that will return whether a write must be run in a distributed transaction. This function should return true if the 'state' field in reshardingFields is any of 'preparingToMirror', 'mirroring', 'committed', 'renaming', or 'dropping'.

      If any of these states on startup, automatically queue writes for distributed transactions.

      Attachments

        Activity

          People

            vishnu.kaushik@mongodb.com Vishnu Kaushik
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: