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

upgradeCheck() or collUpgradeCheck() should exclude changelog collection

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Admin
    • None

      While normally changelog would be excluded because it lives in config database, it is very easy to restore the config DB into a differently named database and get an error from upgradeServer() check on every single document in that collection that has a shard key with . in the name

      (example if I shard on "foo.bar" where bar is embedded document inside foo, like "user.screen_name" in twitter json, for example).

      Suggestion: exclude collections named "changelog" or ignore errors on documents in collection "changelog" if the error is embedded inside "min" or "max" top level fields.

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: