The changes from 59d341f as part of SERVER-61760 had modified the CollModCoordinator to set allowMigrations to false while it is running. The changes from d6f2b64 as part of SERVER-60694 had changed the collMod command to specify a maxTimeMS but left the spawned CollModCoordinator unsynchronized with the remainder of the test after the resharding operation had completed.
We'll want to change the resharding_prohibited_commands.js test to use the new afterReshardingFn callback (for example) to synchronize with the spawned CollModCoordinator before running ReshardingTest#_checkPostState().
[js_test:resharding_prohibited_commands] uncaught exception: Error: [[ ]] != [[ [js_test:resharding_prohibited_commands] { [js_test:resharding_prohibited_commands] "_id" : "reshardingDb.coll", [js_test:resharding_prohibited_commands] "lastmodEpoch" : ObjectId("61e691ae4c308829f2ecb453"), [js_test:resharding_prohibited_commands] "lastmod" : ISODate("2022-01-18T10:08:47.614Z"), [js_test:resharding_prohibited_commands] "timestamp" : Timestamp(1642500526, 4), [js_test:resharding_prohibited_commands] "uuid" : UUID("354c0c9a-273f-471b-a198-582265675396"), [js_test:resharding_prohibited_commands] "key" : { [js_test:resharding_prohibited_commands] "newKey" : 1 [js_test:resharding_prohibited_commands] }, [js_test:resharding_prohibited_commands] "unique" : false, [js_test:resharding_prohibited_commands] "noBalance" : false, [js_test:resharding_prohibited_commands] "allowMigrations" : false [js_test:resharding_prohibited_commands] } [js_test:resharding_prohibited_commands] ]] are not equal : expected there to be no config.collections entries with 'allowMigrations' set :
- is caused by
-
SERVER-61760 The new implementation of CollMod should rely on the AllowMigrations to stop/resume migrations
- Closed
- is related to
-
SERVER-60694 Create DDL coordinator for collMod command
- Closed