initial ShardRegistry reload done twice

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • Sharding 2017-01-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Dianna Hohensee (Inactive)
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: