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

Investigate changes in SERVER-56241: Don't allow setting getLastErrorDefaults on startup/reconfig

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: manual, Server
    • Labels:
      None

      Description

      Description

      Downstream Change Summary

      We do not allow setting settings.getLastErrorDefaults in the config to a customized value, i.e anything other than:

          {w: 1, wtimeout: 0}
          

      on startup/reconfig

      Description of Linked Ticket

      • We will fassert on startup if the field exists and is not {w:1, wtimeout: 0}

        for a replica set that is part of a sharded cluster, since that would be counter to our goal of ensuring that the default write concern is uniform across all replica sets in the cluster.

      • We will fail any addShard for a replica set that specifies something other than {w:1, wtimeout: 0}

        or any replSetReconfig commands that modify getLastErrorDefaults.

      • We should upgrade the existing startup warning for non {w:1, wtimeout: 0}

        values on non-shard servers from saying that this field is deprecated to say that the field is ignored.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ian.fogelman Ian Fogelman
              Reporter:
              backlog-server-pm Backlog - Core Eng Program Management Team
              Participants:
              Last commenter:
              Ian Fogelman Ian Fogelman
              Docs Reviewer:
              Jeffrey Allen Jeffrey Allen
              External Reviewer:
              Huayu Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                2 weeks, 6 days ago
                Date of 1st Reply: