[SERVER-48967] Prevent replicated writes on empty namespaces on secondaries Created: 18/Jun/20 Updated: 29/Oct/23 Resolved: 10/Jul/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.20, 4.2.9, 4.4.1, 3.6.20, 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.4, v4.2, v4.0, v3.6
|
||||||||
| Sprint: | Repl 2020-07-13 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 30 | ||||||||
| Description |
|
The writes on empty namespaces are exempt from this check and will be allowed even if the node has stepped down. |
| Comments |
| Comment by Githook User [ 10/Aug/20 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: (cherry picked from commit 1ce0d13e46f720b35ae01e37d16bcd7b3789a045) |
| Comment by Githook User [ 24/Jul/20 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: (cherry picked from commit 1ce0d13e46f720b35ae01e37d16bcd7b3789a045)
|
| Comment by Githook User [ 24/Jul/20 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: (cherry picked from commit 1ce0d13e46f720b35ae01e37d16bcd7b3789a045) |
| Comment by Githook User [ 23/Jul/20 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: (cherry picked from commit 1ce0d13e46f720b35ae01e37d16bcd7b3789a045) |
| Comment by Githook User [ 09/Jul/20 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: |
| Comment by Siyuan Zhou [ 02/Jul/20 ] |
|
Wow. That's about 6 years ago! I thought it was for initiate, but not sure. I guess a patch build would prove or disprove that. Another way is to add an invariant in getOpObserver()->onOpMessage() to check writability is always true. |
| Comment by A. Jesse Jiryu Davis [ 01/Jul/20 ] |
|
The special case for empty namespaces was introduced in |