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

resharding_prohibited_commands.js fails due to allowMigrations being unexpectedly true from collMod command continuing to run

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-01-24
    • 161

      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 :
      

            Assignee:
            marcos.grillo@mongodb.com Marcos José Grillo Ramirez
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: