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

aborting an index build during initial sync can do an untimestamped write

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2022-10-17, Execution Team 2022-10-31, Execution Team 2022-11-14, Execution Team 2022-12-12, Execution Team 2022-11-28, Execution Team 2023-01-09, Execution Team 2023-01-23
    • 25

      If we get a BackgroundOperationInProgress error while building indexes on a collection during initial sync, we will abort all in progress builds on that collection. However, the abort makes an untimestamped write, which causes the server to fassert.

      This error should only happen if we've received a conflicting DDL operation on the collection. Since these operations are applied in their own batch (i.e. creating a batch size of 1), if should be safe for us to timestamp the abortIndexBuild write at the ts of the conflicting operation.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: