[SERVER-55380] Out of order oplog application for state docs that create/delete MTAB Created: 19/Mar/21  Updated: 29/Oct/23  Resolved: 21/Apr/21

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

Type: Bug Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: pm-1791_non-cloud-blocking, pm-1791_other_required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-55193 Support back-to-back migration of the... Closed
is related to SERVER-66985 Oplog applier should serialize writes... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.9
Sprint: Repl 2021-04-05, Repl 2021-04-19, Repl 2021-05-03
Participants:
Linked BF Score: 154

 Description   

In secondary oplog application, state doc writes could be done in parallel. So if we have both a delete and an insert of state docs of same tenantId in the same batch, the insert could happen first which would create a mtab before the delete is applied to remove the conflicting state doc.



 Comments   
Comment by Githook User [ 23/Apr/21 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@mongodb.com', 'username': 'jasonjhchan'}

Message: SERVER-55380 Serialize oplog application of writes to the tenant migration namespace

(cherry picked from commit d45413a73b86ccedf2e6748e52c5bb95f9e1b5cb)
Branch: v4.9
https://github.com/mongodb/mongo/commit/2882691604a80e36bdea975d7c040c28a55d5715

Comment by Githook User [ 21/Apr/21 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@mongodb.com', 'username': 'jasonjhchan'}

Message: SERVER-55380 Serialize oplog application of writes to the tenant migration namespace
Branch: master
https://github.com/mongodb/mongo/commit/d45413a73b86ccedf2e6748e52c5bb95f9e1b5cb

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