[SERVER-55687] Add function to calculate write concern default formula Created: 01/Apr/21 Updated: 29/Oct/23 Resolved: 26/Apr/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: | Samyukta Lanka | Assignee: | Moustafa Maher |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||
| Sprint: | Repl 2021-04-19, Repl 2021-05-03 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
implicitDefaultWriteConcern = if ((#arbiters > 0) AND (#arbiters >= ½(#voting nodes) - 1)) then {w:1} else {w:majority}. We should keep track of the implicit default write concern in ReadWriteConcernDefaults. _getDefault cannot return the implicit default write concern yet however (that will happen in |
| Comments |
| Comment by Moustafa Maher [ 24/Aug/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A better way to state the formula:
majority(#voting nodes) = (voting nodes)/2 + 1 Example:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Githook User [ 20/Apr/21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Author: {'name': 'Moustafa Maher', 'email': 'm.maher@10gen.com', 'username': 'moustafamaher'}Message: |