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

Create helper functions for building indexes with the IndexBuildsCoordinator

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Execution Team 2019-11-04, Execution Team 2019-11-18

      The full code to create an index and handle errors with the IndexBuildsCoordinator is 70 lines long.

      In order to replace the usages of MultiIndexBlock and manual OpObserver->onCreateIndex calls, we should factor this all out.

      We should consider implementing the following:

      • A helper that is synchronous and only returns when an index build completes or fails
      • A helper that builds an index on an empty collection on the current thread to prevent context switches.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: