As described in SERVER-65312, for chunk migration to work correctly, a pre/post image noop oplog entry for a retryable findAndModify must have the same stmtId as that of the CRUD oplog entry that it corresponds to. Resharding and tenant migration currently do not depend the stmtIds for pre/post image oplog entries. In particular, they always log the pre/post noop image oplog entries (here and here). However, for consistency the $_internalFindAndModifyImageLookup stage should make each forged pre/post image noop oplog entry have the same stmtId as that of the CRUD oplog entry it corresponds to.
- is related to
-
SERVER-65312 findAndModify pre/post image noop oplog entry forged by chunk migration donor should have the same statement id as the CRUD oplog entry it corresponds to
- Closed
-
SERVER-63976 TenantMigrationOplogApplier expects pre/post image noop oplog entries to have a statement id
- Closed