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

Update kill_rooted_or.js / IndexBuildsCoordinator to gracefully handle index build already in-progress errors

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Storage NYC 2019-02-11, Storage NYC 2019-02-25
    • 3

      "The Coordinator registers each index spec by name that comes in, before the indexes are set up in the index catalog as in-progress. Then subsequent requests with the same index names hit an error in the Coordinator. Without the Coordinator, spec requests are normally automatically filtered out if they're already found to be built or building via the index catalog.

      The concurrency test has 10 threads, potentially all running the same createIndexes requests at the same time, so "There's already an index with name..." errors make sense – previously they'd get filtered out and the redundant commands return OK.

      Perhaps a new error code IndexBuildAlreadyInProgressForName to fix tests, and we can consider the final behavior changes later, and easily identify the changes by error code if we want to undo them. This is related to our problem regarding spec checking being scattered all over the place at different levels of the code."

            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: