configTerm is expected as an int32 but can be an int64

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0, 8.2.7, 8.0.21, 7.0.32
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • v8.2, v8.0, v7.0
    • Repl 2026-02-16
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In repl_set_config.idl the configTerm field has a max value of int max but is derived from the term field of the original primary. If the term that is used here were to ever be above int::max and below int64::max that would cause a parsing crash. configTerm should be parsed as a long long like other uses of term in the code.

      This also requires changes to repl_set_heartbeat_response.h/cpp since we store the configTerm as an int in that class, heartbeats won't establish without appropriate changes there.

            Assignee:
            Sean Zimmerman
            Reporter:
            Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: