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

Support a command that returns after an index build has started

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Fully Compatible
    • v8.0, v7.0, v6.0
    • Execution Team 2024-04-29, Execution Team 2024-05-27, Execution Team 2024-07-22, Execution Team 2024-08-05, Execution Team 2024-08-19, Execution Team 2024-09-02, Execution Team 2024-09-16
    • 200

      Mongosync would benefit from being able to issue a createIndexes command that doesn't block on the index build's completion, but rather only blocks on the startIndexBuild oplog entry becoming majority-committed. This could look something like:

      db.runCommand(
         {
           createIndexes: <collection>,
           indexes: [
               { ... }
           ],
           returnOnStart: <true|false>,
         }
       ) 

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: