[SERVER-76985] New commit phase of sharded renameCollection is not idempotent Created: 10/May/23  Updated: 29/Oct/23  Resolved: 11/May/23

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

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:
Backports
Depends
Problem/Incident
is caused by SERVER-74192 DDL coordinators that rely on the int... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-05-15
Participants:
Linked BF Score: 148

 Description   

The commit phase of the renameCollection has been recently modified to perform the metadata changes as a multi document TXN. However, this TXN has one stmt that is not idempotent, so if the whole commit phase is re-executed due to any random failure it will end up failing and being retried forever.



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

Author:

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

Message: SERVER-76985 Making commit phase of renameCollection idempotent

(cherry picked from commit dc864de3212e83b2d2a7553b6d9a975c523305e6)
Branch: v7.0
https://github.com/mongodb/mongo/commit/d7d038271b7b1749e19c89a07cd76b18e1d84fff

Comment by Githook User [ 11/May/23 ]

Author:

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

Message: SERVER-76985 Making commit phase of renameCollection idempotent
Branch: master
https://github.com/mongodb/mongo/commit/dc864de3212e83b2d2a7553b6d9a975c523305e6

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