[SERVER-68161] Do not wait for ShardRegistry reload at startup Created: 20/Jul/22  Updated: 29/Oct/23  Resolved: 20/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

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

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-07-25
Participants:

 Description   

Both for mongos and mongod we wait for ShardRegistry to be populated at startup before considering "sharding" fully initialized.

The ShardRegistry is implemented as a ReadThroughCache and will be populated on first access thus there is no need to wait for it to be populated at startup.



 Comments   
Comment by Githook User [ 20/Jul/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-68161 Do not wait for ShardRegistry reload at startup
Branch: master
https://github.com/mongodb/mongo/commit/02d294a410ada9b804ef3909139d64203ed674d6

Comment by Githook User [ 20/Jul/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-68161 Do not wait for ShardRegistry reload at startup
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/e064f0ea7c025fc170bd7240a7d6a7eda98e989a

Generated at Thu Feb 08 06:10:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.