[SERVER-46365] getMore command before rs.initiate() can trip invariant Created: 24/Feb/20 Updated: 29/Oct/23 Resolved: 09/Mar/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.0.16 |
| Fix Version/s: | 4.0.17 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Justin Seyster | Assignee: | Justin Seyster |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Minor Change | ||||
| Operating System: | ALL | ||||
| Sprint: | Query 2020-03-23 | ||||
| Participants: | |||||
| Case: | (copied to CRM) | ||||
| Description |
|
In v4.0, every getMore command calls serverGlobalParams.featureCompatibility.getVersion() . However, this check trips an invariant if there is no FCV document in place yet. First-time launch of a mongod in a replica set does not populate the FCV document. That doesn't happen until the call to rs.initiate(), which leaves a period of time during which any getMore command will crash the server. The check was removed for v4.2, so this bug should not occur in future releases. |
| Comments |
| Comment by Githook User [ 09/Mar/20 ] |
|
Author: {'name': 'Justin Seyster', 'username': 'jseyster', 'email': 'justin.seyster@mongodb.com'}Message: |