[SERVER-56241] Don't allow setting getLastErrorDefaults on startup/reconfig Created: 21/Apr/21  Updated: 29/Oct/23  Resolved: 14/May/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Huayu Ouyang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-14440 Investigate changes in SERVER-56241: ... Closed
Duplicate
is duplicated by SERVER-55694 Upgrade startup warning for getLastEr... Closed
Problem/Incident
Related
Backwards Compatibility: Minor Change
Sprint: Repl 2021-05-03, Repl 2021-05-17
Participants:
Case:
Linked BF Score: 159

 Description   
  • 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.



 Comments   
Comment by Githook User [ 14/May/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig
Branch: master
https://github.com/mongodb/mongo/commit/989723a08f0afc825a70bb7b06691e838c8fc78b

Comment by Githook User [ 13/May/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: Revert "SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig"

This reverts commit f6b96a603dfdc1b763886db2a12ebfd226f5fc8e.
Branch: master
https://github.com/mongodb/mongo/commit/e009f6a207358b8f6b4f1fa97fc1f52e63f71b40

Comment by Githook User [ 12/May/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig
Branch: master
https://github.com/mongodb/mongo/commit/f6b96a603dfdc1b763886db2a12ebfd226f5fc8e

Comment by Githook User [ 11/May/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: Revert "SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig"

This reverts commit 942b6127cabbdfca9e76b8a8a1672d45a3474bf9.
Branch: master
https://github.com/mongodb/mongo/commit/8951dcb47708e988e75565e4a8fa4bf8eb941d03

Comment by Githook User [ 10/May/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-56241 Don't allow setting getLastErrorDefaults on startup/reconfig
Branch: master
https://github.com/mongodb/mongo/commit/942b6127cabbdfca9e76b8a8a1672d45a3474bf9

Generated at Thu Feb 08 05:38:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.