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

reconcileCatalogAndIdents() should also include unready indexes in set of indexes to rebuild

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Storage
    • None
    • Repl 2018-02-26

      KVStorageEngine::reconcileCatalogAndIdents() needs to include unready (that is, unfinished) indexes in its return set, so that the recovery process will rebuild them when in ROLLBACK. Otherwise, applying an operation that affects that index will cause us to crash because we don't have a proper WiredTiger table corresponding to it.

      We will have to preserve the behavior of the --noIndexBuildRetry flag, which skips rebuilding unfinished indexes at start-up. One idea is to forbid specifying both --replset and --noIndexBuildRetry at the same time.

            Assignee:
            kyle.suarez@mongodb.com Kyle Suarez
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: