Make timeouts unrelated to elections not depend on election timeout

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.3, 3.7.2
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • v3.6, v3.4
    • Repl 2018-01-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      For testing it can be helpful to increase the election timeout to infinity. We have multiple timeouts that are calculated based on the election timeout which prevent this. We should add a maximum to these timeouts, potentially based on the heartbeat interval like in the TopologyCoordinator below:
      https://github.com/mongodb/mongo/blob/9b6f404d30b944def9bcc77ebc8277fb97471080/src/mongo/db/repl/sync_source_feedback.cpp#L56
      https://github.com/mongodb/mongo/blob/9b6f404d30b944def9bcc77ebc8277fb97471080/src/mongo/db/repl/oplog_fetcher.cpp#L74
      https://github.com/mongodb/mongo/blob/9b6f404d30b944def9bcc77ebc8277fb97471080/src/mongo/db/repl/topology_coordinator.cpp#L1018

            Assignee:
            Judah Schvimer
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: