[SERVER-44437] remove DBDirectClient reference from ShardLocal::createIndexOnConfig Created: 05/Nov/19  Updated: 29/Oct/23  Resolved: 06/Nov/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-43692 enable two phase index builds by default Closed
Related
related to SERVER-51733 config server in a docker container f... Closed
is related to SERVER-43697 Create helper functions for building ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-11-18
Participants:

 Description   

ShardLocal::createIndexOnConfig is called during primary step up as part of the config database initialization. Assuming that the config collection is always empty when this function is called, we should be able to replace this reference to DBDirectClient() with one of the new index creation helpers introduced in SERVER-43697. This will also eliminate another case where we build an index through the IndexBuildsCoordinator interface synchronously (SERVER-44436).



 Comments   
Comment by Githook User [ 06/Nov/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-44437 rewrite ShardLocal::createIndexOnConfig to not use DBDirectClient
Branch: master
https://github.com/mongodb/mongo/commit/0b9da1296178806507ebab9b9c6c958f3968eca9

Comment by Githook User [ 06/Nov/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-44437 fix sharding tests to ensure config db indexes are initialized before lock pinger runs
Branch: master
https://github.com/mongodb/mongo/commit/e2bd86fe3f5118b092067eaab0d944f899389cef

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