[SERVER-64291] Make session_catalog_migration_source_test.cpp assign an lsid and txnNumber to every test oplog entry Created: 07/Mar/22  Updated: 29/Oct/23  Resolved: 07/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0-rc3

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:
Depends
is depended on by SERVER-63494 Transfer history for retryable transa... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2022-03-21
Participants:

 Description   

Most unit tests in this file currently does not assign an lsid and txnNumber to the test oplog entries they use. This is unrealistic since the SessionCatalogMigrationSource only deals with oplog entries for retryable writes and transations. Also, starting from SERVER-63494, the SessionCatalogMigrationSource will need to check the session id of each fetched oplog entry to determine if it corresponds to an internal transaction since internal transaction oplog entries need to be handled differently. To make these unit tests still work in SERVER-63494, the oplog entries they use must each have an lsid (and txnNumber). 



 Comments   
Comment by Githook User [ 07/Mar/22 ]

Author:

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

Message: SERVER-64291 Make session_catalog_migration_source_test.cpp assign an lsid and txnNumber to every test oplog entry
Branch: master
https://github.com/mongodb/mongo/commit/2110bf828f74f6e28483c56a04f6f3208f2f68af

Generated at Thu Feb 08 05:59:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.