Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6757

Investigate changes in SERVER-63983: Remove deprecated enableSharding flag

    • Type: Icon: Investigation Investigation
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      Original Downstream Change Summary

      Starting from 7.1 entries in config.databases for newly created databases will not contain anymore the partitioned flag.

      Description of Linked Ticket

      Starting from 6.0 there is no need anymore to call the enableSharding command on a database before to shard a collection.

      In 6.0 we made the partitioned flag in config.databases to be false by default for all newly created database and if this field is not found while parsing from disk it will be considered false.

      In version 7.1 we can completely remove this field from the IDL and stop persisting it.

      So recapping:

      • binaries ≤ 5.0 ⇒ the field is always persisted either false/true and if not present will be considered false
      • 6.0 ≤ binaries ≤ 7.0 ⇒ the field is always persisted as false and if not present will be considered false
      • binaries >= 7.0 ⇒ the field is neither persisted nor parsed

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: