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

Make timeouts unrelated to elections not depend on election timeout

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.3, 3.7.2
    • Replication
    • None
    • Fully Compatible
    • v3.6, v3.4
    • 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

              judah.schvimer@mongodb.com Judah Schvimer
              judah.schvimer@mongodb.com Judah Schvimer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: