[SERVER-65344] findAndModify pre/post image noop oplog entry forged by the $_internalFindAndModifyImageLookup stage should have the same statement id as the CRUD oplog entry it corresponds to Created: 07/Apr/22  Updated: 29/Oct/23  Resolved: 20/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc2, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-65312 findAndModify pre/post image noop opl... Closed
is related to SERVER-63976 TenantMigrationOplogApplier expects p... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Sharding 2022-05-02
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 20/Apr/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-65344 findAndModify pre/post image noop oplog entry forged by the stage should have the same statement id as the CRUD oplog entry it corresponds to

(cherry picked from commit 38973eaf395bf489a9e4476f001f4c9a7ffbb5cc)
Branch: v6.0
https://github.com/mongodb/mongo/commit/20ee2db68fa0e1fdc205fda76757700ede015659

Comment by Githook User [ 20/Apr/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-65344 findAndModify pre/post image noop oplog entry forged by the stage should have the same statement id as the CRUD oplog entry it corresponds to
Branch: master
https://github.com/mongodb/mongo/commit/38973eaf395bf489a9e4476f001f4c9a7ffbb5cc

Generated at Thu Feb 08 06:02:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.