|
While working on SERVER-60599 it was decided to also add the following test cases :
- Have a TenantMigration finish and return committed and then access in read / write. The count and insert commands (read and write) should not work since it should return "committed" and the mongos hasn't updated its routing table to route to the new owner (using commandFailedWithCode - ErrorCodes.TenantMigrationCommitted)
- Have a TenantMigration started and then aborted. Then try to read and write (using count and insert) on the database. This should work (commandWorked should succeed) since the migration was aborted and therefor the owner hasn't changed.
|