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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.1, 5.0.13, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0, v5.0, v4.4
    • Execution Team 2022-05-02, Execution Team 2022-05-16
    • 115

      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.

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

              Created:
              Updated:
              Resolved: