Create helper functions for building indexes with the IndexBuildsCoordinator

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: