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

Handle duplicate index in resharding building-index phase

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2023-06-26, Repl 2023-07-10
    • 41

    Description

      If failover happens during building-index phase, the new primary will try starting all the indexes and will fail the resharding if the old primary has already created the index entries in IndexCatalog. We should catch and handle this case by either removing existed indexSpec before calling startIndexBuild or catch the IndexAlreadyExist error.
      We should also add a jstest to catch this case.

      Attachments

        Activity

          People

            jiawei.yang@mongodb.com Jiawei Yang
            jiawei.yang@mongodb.com Jiawei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: