Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63421

[v4.4] Relax term limit check in replica set to check for long long boundaries instead of int

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.15
    • None
    • None
    • Fully Compatible
    • Repl 2022-02-21, Repl 2022-03-07, Repl 2022-03-21, Repl 2022-04-04, Repl 2022-05-02

    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

      Attachments

        Activity

          People

            vesselina.ratcheva@mongodb.com Vesselina Ratcheva
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: