[SERVER-57358] Build config.chunks indexes on background in FCV upgrade/downgrade Created: 02/Jun/21  Updated: 29/Oct/23  Resolved: 04/Jun/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-17419 Remove DBDirectClient class Closed
is related to SERVER-57432 Prevent MODE_X and MODE_S locks from ... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Participants:
Linked BF Score: 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.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 04/Jun/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-57358 Build config.chunks indexes on background in FCV upgrade/downgrade

(cherry picked from commit bf6e0a139b783352c44dbc9db7334f406d78ffe0)
Branch: v5.0
https://github.com/mongodb/mongo/commit/fa60b01bdae55a604fe21ec48d84924011d94a6b

Comment by Githook User [ 04/Jun/21 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-57358 Build config.chunks indexes on background in FCV upgrade/downgrade
Branch: master
https://github.com/mongodb/mongo/commit/bf6e0a139b783352c44dbc9db7334f406d78ffe0

Generated at Thu Feb 08 05:41:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.