-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
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.)
- documents
-
SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig
- Closed
- duplicates
-
DOCS-14381 Investigate changes in SERVER-55701: Ignore replica set config's getLastErrorDefaults
- Closed