-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
Fully Compatible
-
ALL
-
v4.9
-
Repl 2021-04-19, Repl 2021-05-03
Based on the EVG patch builds for SERVER-52713, tenant migration recipient can fail to find pre-image or post-image for oplog entry in config.repl.migration.oplog, causing the migration to abort with NoSuchKey error.
[j1:rs1:n0] | 2021-03-19T01:36:30.452+00:00 D1 TENANT_M 5351004 [TenantMigrationRecipientService-3] "Tenant Oplog Batcher reordering pre- or post- image for oplog entry","attr":{"opTime":{"ts":{"$timestamp":{"t":1616117790,"i":28}},"t":2},"imageOpTime":{"ts":{"$timestamp":{"t":1616117790,"i":27}},"t":2}} [j1:rs1:n0] | 2021-03-19T01:36:30.453+00:00 I REPL 4878501 [TenantMigrationRecipientService-3] "Tenant migration recipient instance: Data sync completed.","attr":{"tenantId":"tenantMigrationTenantId","migrationId":{"uuid":{"$uuid":"81ad6fb6-afa2-4567-a156-dbe6428605fe"}},"error":{"code":4,"codeName":"NoSuchKey","errmsg":"No document found with _id: _id: { ts: Timestamp(1616117790, 27) } in namespace config.repl.migration.oplog_81ad6fb6-afa2-4567-a156-dbe6428605fe"}} buildscripts.resmokelib.errors.ServerFailure: Tenant migration with donor replica set 'rs0' aborted due to an error: {'state': 'aborted', 'abortReason': {'code': 4, 'codeName': 'NoSuchKey', 'errmsg': 'Tenant migration recipient command failed :: caused by :: No document found with _id: _id: { ts: Timestamp(1616117790, 27) } in namespace config.repl.migration.oplog_81ad6fb6-afa2-4567-a156-dbe6428605fe'}, 'ok': 1.0, '$clusterTime': {'clusterTime': Timestamp(1616117790, 48), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, 'operationTime': Timestamp(1616117790, 48)}
- is depended on by
-
SERVER-52713 [testing] Add stepdown/kill/terminate to tenant_migration_jscore_passthrough
- Closed