Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15737

[Server] Investigate changes in SERVER-68852: Investigate handling of incorrect values for balancer settings

      Original Downstream Change Summary

      Added json validator to config.settings collection. Now, updates/inserts on config.settings with _id: "chunksize" will be rejected if the value is invalid. And any updates/inserts where the _id is an unexpected value will be rejected.
      All existing incorrect values will be left as is.

      Description of Linked Ticket

      While investigating uses of NaN in the balancer, it came up that if the user updates the maxChunkSize to a value not accepted by the balancer (NaN, -10, etc.), the balancer and all other operations that rely on the balancer configuration setting will fail until the setting is changed. These operations are:

      • all balancer operations
      • add shard
      • chunk autosplitting and initial chunk splitting
      • manual migrations

      This ticket is to investigate whether this is a problem and if there is a way to reject the write of an invalid value rather than checking it at runtime.

            Assignee:
            alison.huh@mongodb.com Alison Huh
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 20 weeks, 2 days ago