[SERVER-77304] stopMigrations is not idempotent anymore Created: 19/May/23  Updated: 29/Oct/23  Resolved: 23/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0-rc0
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Sergi Mateo Bellido
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-73539 stopMigrations/resumeMigrations don't... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding EMEA 2023-05-29
Participants:
Linked BF Score: 135

 Description   

In SERVER-73539 we changed getN function call by a getNModified function call in the TXN associated with the stopMigrations function, making it not idempotent if the TXN has to be re-executed due to a DDL Coordinator phase re-execution.
 



 Comments   
Comment by Githook User [ 23/May/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-77304 Adding a new test for stopMigrations
Branch: master
https://github.com/mongodb/mongo/commit/ef49ce05d4bf22bb75f567743ee3608e7b02a193

Comment by Githook User [ 19/May/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-77304 Fixing idempotency internal setAllowMigrations
Branch: master
https://github.com/mongodb/mongo/commit/0fdc3ea7d51b393008bd7bc6f25f489a567eb315

Generated at Thu Feb 08 06:35:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.