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

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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc1, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • v5.0
    • 161

      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.

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

              Created:
              Updated:
              Resolved: