Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51342

ShardRegistry should forget connection strings of removed shards

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Sharding
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: