-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Serverless
We use low-level WT APIs in wiredtiger_import.cpp, since the higher-level MongoDB APIs don't play well with a second, temporary WT instance. But this means we don't automatically handle interrupts, e.g. when the node starts to shut down or step down.
Use OperationContext to check for interrupts regularly during WT operations like rollback-to-stable, recording collection metadata, and importing donor files.
In TenantMigrationRecipientService there are several places that do:
return WaitForMajorityService::get(opCtx).waitUntilMajority(writeOpTime, CancellationToken::uncancelable());
There's a cancellation token available, let's use it instead of uncancelable.
_fetchAndStoreDonorClusterTimeKeyDocs takes a cancellation token but doesn't use it.
- depends on
-
SERVER-61146 Apply donor oplog entries
- Closed
- is duplicated by
-
SERVER-64158 Make _fetchAndStoreDonorClusterTimeKeyDocs cancellable
- Closed