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

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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Index Maintenance, Storage
    • None
    • Repl 2018-02-26

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: