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

Bump collection version on any modification of config.collections reshardingFields or allowMigrations fields

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible

      Description

      Any modification of config.collections 'reshardingFields' or 'allowMigrations' field should, in a txn, also bump the collection version. Otherwise, this invariant can be tripped. 

      Additionally, this comparison (which is used in the invariant mentioned above) is wrong and needs to be fixed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jordi.serra-torrens Jordi Serra Torrens
              Reporter:
              jordi.serra-torrens Jordi Serra Torrens
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: