[SERVER-50892] Mirror reads logic incorrectly assumes response is always OK Created: 11/Sep/20 Updated: 29/Oct/23 Resolved: 25/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.8.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Benjamin Caimano (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | servicearch-wfbf-day | ||
| 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
|
||||||||
| Sprint: | Service arch 2020-10-05 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 24 | ||||||||
| Description |
|
The mirrored reads code triggers a fatal assertion if the response from the mirroring request is non-ok: https://github.com/mongodb/mongo/blob/1373280c254a39d2ca7d85563718a6f74c927216/src/mongo/db/mirror_maestro.cpp#L382-L386 As far as I can tell, there's no basis for that assumption, the command could fail for any number of reasons, including network errors. |
| Comments |
| Comment by Githook User [ 25/Sep/20 ] |
|
Author: {'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}Message: |
| Comment by Benjamin Caimano (Inactive) [ 11/Sep/20 ] |
|
Hmmmmm, so here's the rub: |