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

Build config.chunks indexes on background in FCV upgrade/downgrade

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.0-rc1, 5.1.0-rc0
    • None
    • Sharding
    • None
    • Fully Compatible
    • v5.0
    • 161

    Description

      During FCV upgrade/downgrade to 5.0 we build indexes on uuid_1_xxxx or ns_1_xxxx. Currently this is done using ShardLocal::createIndexOnConfig, which essentially does a foreground index build because it's holding the config.chunks collection lock for the duration of the build. As a consequence, DDL operations and catalog cache refreshes will queue behind this index build.

      This ticket is to change this so that it makes use of background index builds. We could use DBDirectClient createIndex.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: