[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:
Related
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: SERVER-63421 Relax term limit check in replset config validation for long long boundaries instead of int
Branch: v4.4
https://github.com/mongodb/mongo/commit/8703f30c59d02ba4653c4732ec3de1d927627396

Generated at Thu Feb 08 05:57:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.