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

Write conflict on commitIndexBuild oplog entry insertion can cause multikey to fail to be set

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.1, 6.1.0-rc0, 5.0.13
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.0, v4.4
    • Execution Team 2022-05-02, Execution Team 2022-05-16
    • 115

    Description

      We commit an index build inside of a writeConflictRetry loop. As a part of this process, one of the sources of multikey is the interceptor for writes that came in while the index build was already in progress. However, we also unset the interceptor before inserting the commitIndexBuild oplog entry. This means that if inserting the oplog entry gets a write conflict, we'll restart this process but the interceptor will have already been unset. Thus, we will fail to set multikey.

      Attachments

        Activity

          People

            fausto.leyva@mongodb.com Fausto Leyva
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: