Original summary
resharding_allowMigrations.js fails if primary shard of 'reshardingDb' is not the first shard
Original description
I've discovered this while working on SERVER-54230, the problem is that if we randomly choose the primary shard of newly created database the resharding_allowMigrations.js starts failing.
More specifically I've discovered that this happen only if the primary shard is chosen among one of the donor shards that is not shard-0.
- causes
-
SERVER-97044 ReshardCollection can sometimes trigger invalidate event on change streams
- Closed
- depends on
-
SERVER-60007 Implement command to drop collection if its UUID differs from the expected
- Closed
- has to be done after
-
SERVER-54230 Stop returning sorted shard IDs vector from ShardRegistry
- Closed
- is related to
-
SERVER-40859 Orphaned collections after a movePrimary that fails to cleanup can cause future migrations to fail
- Closed
- related to
-
SERVER-54279 Primary shard may end up with inconsistent collection catalog entry after resharding
- Closed
-
SERVER-73686 Make ShardsvrDropCollectionIfUUIDNotMatching take write concern majority in resharding coordinator
- Closed
-
SERVER-57759 Run movePrimary command before sharding the source collection in the ReshardingTest fixture
- Closed