[SERVER-49834] Handle fsync and fsyncUnlock during tenant migrations Created: 23/Jul/20  Updated: 14/Dec/22  Resolved: 17/Nov/20

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

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Won't Do Votes: 0
Labels: pm-1791_milestone-A
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-52905 Complete TODO listed in SERVER-49834 Closed
is related to SERVER-49174 Make writes call MigratingTenantAcces... Closed
is related to SERVER-52893 Handle planCache* commands during a t... Closed
Assigned Teams:
Sharding
Participants:

 Description   

fsync flushes all pending writes to disk, and if "lock: true" is specified, blocks the entire mongod from accepting writes (not just a particular database or collection).

fsyncUnlock allows the mongod to start accepting writes again.

I don't think we need to synchronize these with tenant migrations, since they don't change the user's data.



 Comments   
Comment by Githook User [ 14/Dec/22 ]

Author:

{'name': 'Esha Maharishi', 'email': 'esha.maharishi@mongodb.com', 'username': 'EshaMaharishi'}

Message: SERVER-52905 Complete TODO listed in SERVER-49834

There are two TODO's on SERVER-49834 in jstests/replsets/tenant_migration_concurrent_writes_on_donor_util.js: one for unskipping the captrunc command and one for unskipping the compact command.

However, SERVER-49834 is about fsyncLock and fsyncUnlock, not captrunc or compact.

The TODO for captrunc was probably meant to be on SERVER-52895, where we ultimately decided not to support captrunc or emptycapped in serverless. We later banned capped collections entirely in serverless in CLOUDP-106443. So, I just removed all testing for capped collections from this file.

The TODO for compact was probably meant to be on SERVER-52896, where we ultimately decided not to support compact in serverless. So, I similarly removed testing for compact from this file.
Branch: master
https://github.com/mongodb/mongo/commit/b23364e3a19b3821ee8a6735b304e5d7117a4930

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