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

Run movePrimary command before sharding the source collection in the ReshardingTest fixture

    • Fully Compatible
    • v5.0
    • Sharding 2021-07-12
    • 28
    • 1

      If one of the recipient-only shards happens to be chosen as the primary shard, and then the collection is sharded, subsequent movePrimary command leaves behind an empty source collection on the recipient shard. This can lead to ReshardingTest#_checkRecipientPostState() failing when the resharding operation isn't expected to succeed.

      Running the movePrimary command before the shardCollection command avoids the issue described in SERVER-54231.

            Assignee:
            luis.osta@mongodb.com Luis Osta (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: