[SERVER-63421] [v4.4] Relax term limit check in replica set to check for long long boundaries instead of int Created: 08/Feb/22 Updated: 29/Oct/23 Resolved: 28/Apr/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.15 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Xuerui Fa | Assignee: | Vesselina Ratcheva (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Sprint: | Repl 2022-02-21, Repl 2022-03-07, Repl 2022-03-21, Repl 2022-04-04, Repl 2022-05-02 | ||||
| Participants: | |||||
| Description |
|
In repl_set_config.cpp, we currently validate that the term lies within the valid range of an int. However, the term is stored as a long long throughout the code base. We should relax that check to be consistent. This ticket only needs to be done in 4.4 and 4.2, since we moved the validation logic into an IDL file starting in 5.0, which does a check for int64, identical to long long |
| Comments |
| Comment by Githook User [ 27/Apr/22 ] |
|
Author: {'name': 'Vesselina Ratcheva', 'email': 'vesselina.ratcheva@10gen.com', 'username': 'vessy-mongodb'}Message: |