-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
v5.0
-
Sharding 2021-02-22, Sharding 2021-03-08, Sharding 2021-03-22
Each instance of the TenantMigrationDonorService maintains an in-memory copy of its underlying state document. This is written to by the main logic that drives a migration and may be concurrently read from other threads, e.g. for currentOp reporting. To avoid data races, the state document should be protected by a mutex.