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

awaitReplication should reset timeout when secondary makes progress

    • Fully Compatible
    • v4.2
    • Repl 2019-06-03, Repl 2019-06-17, Repl 2019-07-01
    • 15

      ReplSetTest.awaitReplication() has a default timeout of 10 minutes. In certain suites/variants, this timeout is insufficient for secondaries to catch up. We should reset the timeout if the secondary makes progress, so that we don't time out if awaitReplication() would eventually succeed. This is preferable over just lengthening the timeout, so that if there is a deadlock, we don't wait unnecessarily. We could optionally have a hard timeout that applies even when secondaries are making progress, or we could rely on Evergreen test/task timeout.

            Assignee:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: