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

Make timeouts unrelated to elections not depend on election timeout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.3, 3.7.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6, v3.4
    • Sprint:
      Repl 2018-01-29

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              judah.schvimer Judah Schvimer
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: