-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication, Testing Infrastructure
-
None
-
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.