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

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

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

      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.

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

              Created:
              Updated:
              Resolved: