[SERVER-57672] Tenant collection cloner should handle dropped and re-created collections on resume Created: 14/Jun/21  Updated: 29/Oct/23  Resolved: 14/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc2, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-57261 Enable tenant migration failover pass... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Repl 2021-06-28
Participants:
Linked BF Score: 43

 Description   

If a collection is dropped and re-created (under a different uuid that's compared larger than the old one) on the donor during recipient failovers, when the new recipient primary tries to resume the collection cloning stage, it is possible to hit this uassert with NamespaceExists if the old recipient primary already created the collection of the same namespace under the old uuid.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 16/Jun/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-57672: Tenant collection cloner should handle dropped and re-created collections on resume
Branch: SERVER-34632
https://github.com/mongodb/mongo/commit/5ddf65d4782c4b0952e4daee638808474c43e462

Comment by Githook User [ 15/Jun/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-57672: Tenant collection cloner should handle dropped and re-created collections on resume

(cherry picked from commit 5ddf65d4782c4b0952e4daee638808474c43e462)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d224dab71f7de0d49ae806b6d0c942ba5128f508

Comment by Githook User [ 14/Jun/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-57672: Tenant collection cloner should handle dropped and re-created collections on resume
Branch: master
https://github.com/mongodb/mongo/commit/5ddf65d4782c4b0952e4daee638808474c43e462

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