[SERVER-26123] initial ShardRegistry reload done twice Created: 15/Sep/16  Updated: 11/Jan/17  Resolved: 11/Jan/17

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

Type: Bug Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-27633 Rename reloadShardRegistryUntilSucces... Closed
Operating System: ALL
Sprint: Sharding 2017-01-02
Participants:

 Description   

It looks like the initial reloading of the shard registry is done in two places:

1) ShardRegistry::startup()
https://github.com/mongodb/mongo/commit/f32f51272b44f895875ab36fc0ae1553d11f1cc2#diff-999be7e0d323ff2ea936dec580153fc5R176

2) reloadShardRegistryUntilSuccess()
https://github.com/mongodb/mongo/blob/eea8acf410705f8c25018babdcf4e7861eb7128e/src/mongo/s/sharding_initialization.cpp#L197-L224

We may want to have it just done in one place.



 Comments   
Comment by Dianna Hohensee (Inactive) [ 11/Jan/17 ]

reloadShardRegistryUntilSuccess() does not reload the shard registry, despite its name.

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