Uploaded image for project: 'Core Server'
  1. Core Server
  2. 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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc2, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0
    • Sharding 2022-05-02

      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.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: