Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-64291

Make session_catalog_migration_source_test.cpp assign an lsid and txnNumber to every test oplog entry

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Sharding NYC 2022-03-21

      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). 

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            0 Vote for this issue
            3 Start watching this issue