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

Don't drop database from old primary shard after movePrimary

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: 3.7.3
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-04-23

      We should just drop the unsharded collections that were moved; there is no need to drop the whole database (and anyway, we only do that if there were no sharded collections), particularly since once unsharded collections are tracked as sharded collections with one chunk, it will be incorrect to drop the database.

      Changing the FCV 4.0 protocol to not drop the database will prevent us from having to change the protocol in a later release (and therefore handle upgrade/downgrade and mixed-version clusters in that release).

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: