[SERVER-79148] add OpObserver method for post transaction prepare step Created: 20/Jul/23  Updated: 29/Oct/23  Resolved: 24/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
is related to SERVER-79048 move retryable findAndModify image lo... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution NAMR Team 2023-07-24, Execution NAMR Team 2023-08-07
Participants:

 Description   

OpObserverImpl::onTransactionPrepare() defines a side transaction for preparing a multi-document transaction. The MigrationChunkClonerSourceOpObserver also overrides this method for notifications related to chunk migration outside this side transaction. We could look into splitting up this OpObserver method in two - onTransactionPrepare() and postTransactionPrepare() to better define the boundaries of the side transaction currently in place for preparing the multi-doc transaction.



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

Author:

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

Message: SERVER-79148 TxnParticipantTest overrides postTransactionPrepare() instead of onTransactionPrepare().

Co-authored-by: Gregory Wlodarek <gregory.wlodarek@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/02b40a9775075fe465d106d4cf922edef46c4d2d

Comment by Githook User [ 22/Jul/23 ]

Author:

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

Message: SERVER-79148 move MigrationChunkClonerSourceOpObserver prepare logic into new OpObserver::postTransactionPrepare() method
Branch: master
https://github.com/mongodb/mongo/commit/3661f06a9d1141182ea84481e0390ad1337c12a7

Comment by Githook User [ 21/Jul/23 ]

Author:

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

Message: SERVER-79148 add OpObserver::postTransactionPrepare()
Branch: master
https://github.com/mongodb/mongo/commit/9fb22423f756c79a35229b47715750c7910be8a1

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