[SERVER-78401] re-order change streams collection writes in OpObserverImpl methods Created: 23/Jun/23  Updated: 29/Oct/23  Resolved: 05/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-78733 TransactionParticipant generates appl... Closed
is related to SERVER-78310 move change stream pre-image logic ou... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution NAMR Team 2023-07-10
Participants:

 Description   

In OpObserverImpl, after writing the oplog entry, we may write the pre-image to the change streams collection. As a prerequisite to SERVER-78300, it would be nice to re-order the change streams access to be the last action in the OpObserverImpl methods that require it - after installing the RecoveryUnit commit handler for the session transaction record and writing the image for findAndModify.



 Comments   
Comment by Githook User [ 04/Jul/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-78401 OpObserverImpl::onUnpreparedTransactionCommit() writes change streams pre-image after writing findAndModify image
Branch: master
https://github.com/mongodb/mongo/commit/0655953dcf8924941c5ace06ac4ebe95639fb0f4

Comment by Githook User [ 04/Jul/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-78401 OpObserverImpl::onDelete() writes change streams pre-image after updating logical session record
Branch: master
https://github.com/mongodb/mongo/commit/f3d6086347d13c59a8cda124d6d4c517a5f94074

Comment by Githook User [ 04/Jul/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-78401 OpObserverImpl::onUpdate() writes change streams pre-image after updating logical session record
Branch: master
https://github.com/mongodb/mongo/commit/f8984ec3c09c098c509b65e22e79c27537915b5a

Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-78401 declare default accumulator value in MigrationChunkClonerSourceOpObserver::onDelete()
Branch: master
https://github.com/mongodb/mongo/commit/a46e261248e6bc071fa2890601b2c2bf3fd84624

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