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

Investigate changes in SERVER-66297: Get rid of `maxSize` for shards

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

      Original Downstream Change Summary

      maxSize field from addShard command has been deprecated and InvalidOptions error is thrown in case user runs addShard

      { ... , maxSize: <value> }

      .
      maxSize field entry won't be generated in config.shards, and in case is present because of an upgrade from previous version (we do not delete the entry when upgrade) the field is ignored.
      Every cluster related stats printing the max size of the shard do not provide this information anymore.

      Description of Linked Ticket

      Get rid of maxSize since it's a soft constraint and doesn't even do well what it's intended to do: it's a legacy parameter that made sense with the MMAP storage engine. Nowadays, the WT storage engine stores data in compressed form so this parameter is not honored anymore.

      Behavioral changes and upgrade/downgrade considerations:

      • In versions >= 6.1 if you specify maxSize on addShard we will error with “InvalidOptions”
      • maxSize configuration field in config.settings will be kept until 7.0 to support dowgrade and then removed completely as part of 7.1 FCV upgrade procedure (SERVER-68430)

            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: