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

Make isCommitOrAbortIndexBuild check in _logOpsInner check the content of the oplog entry

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding 2020-11-02
    • 13

    Description

      This variant inside _logOpsInner was added to ensure that tenant migrations always block all oplog entries other than commitIndexBuild and abortIndexBuild oplog entries. However, the current implementation could lead to invariant failure for batch insert that contains a doc with "commitIndexBuild" or "abortIndexBuild" as a field. We should change to check to only throw if the doc corresponds to an actual commitIndexBuild or abortIndexBuild oplog entry. Also, the check should only be done if tenant migrations are enabled and should uassert instead of invariant.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: