Avoid invariant due to in progress index build during initial sync

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution EMEA Team 2023-10-16, Execution EMEA Team 2023-10-30
    • 120
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The attached reproducer consistently crashes the server.

      The order of operations is as follows:

      • A secondary begins initial sync and sets the timestamp for the oplog replay
      • Primary creates a collection collA
      • Primary creates an index on the empty collection collA (this creates a createIndexes oplog entry)
      • Primary inserts some documents into collA
      • Primary drops the index of collA
      • Primary begins creating the index again in collA (this is a two phase index build)
      • Secondary clones the collection with the in-progress index build and proceeds to also create the index
      • Secondary replays the oplog and crashes due to the in-progress index build

              Assignee:
              Jordi Olivares Provencio
              Reporter:
              Jordi Olivares Provencio
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: