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

Filter index builds requests in the coordinator, register the builds on the Coordinator and set them up in the persisted catalog before changing threads

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Storage NYC 2019-02-11, Storage NYC 2019-02-25

      This is necessary in order to register the final index builds that will be built (after filtering ready indexes and index builds) on the Coordinator, and to prevent subsequent index build duplicate request attempts (which get filtered by the index catalog) from being registered on the Coordinator (which considers that an error).

      Eventually index build dupe requests will join in-progress index builds, so finalized (filtered) index builds must be correctly registered on the Coordinator synchronously before asynchronously building the index(es).

      The logic flow will be

      Caller thread into IndexBuildsCoordinator::startIndexBuild

      • filter index build requests
      • register on the Coordinator
      • set up builder in persisted state, MultiIndexBlock::init
        All of the above under the coordinator's mutex or a DB X lock, to force synchronization

      async thread

      • run index build and clean up index build state on success/failure.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: