[SERVER-62746] resharding_prohibited_commands.js fails due to allowMigrations being unexpectedly true from collMod command continuing to run Created: 19/Jan/22  Updated: 29/Oct/23  Resolved: 24/Jan/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-61760 The new implementation of CollMod sho... Closed
Related
is related to SERVER-60694 Create DDL coordinator for collMod co... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2022-01-24
Participants:
Linked BF Score: 161

 Description   

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 :



 Comments   
Comment by Githook User [ 24/Jan/22 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-62746 Change test to synchronize with collMod DDLcoordinator before running ReshardingTest._checkPostState
Branch: master
https://github.com/mongodb/mongo/commit/acc25a29f386eeab5effddbc5f9cae6a9bcdedaa

Generated at Thu Feb 08 05:55:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.