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

XMLWordPrintableJSON

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

      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
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: