ShardRegistry should forget connection strings of removed shards

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the entry for a shard in _latestConnStrings isn't removed when that shard is removed from the cluster. This is harmless in the sense that it will be skipped and not used, but it needlessly wastes memory, and could cause problems if a shard is later re-added with the same replica set name as the removed shard was using. Therefore this entry should be removed when the ShardRegistry notices that the shard has been removed from the cluster.

              Assignee:
              Tommaso Tocci
              Reporter:
              Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: