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

add failpoint to turn off re-evaluating sync sources, for jstests that manipulate chaining

    XMLWordPrintable

Details

    • Fully Compatible
    • v3.2
    • 0

    Description

      Tests that use replSetSyncFrom can fail on slow machines. They can fail because immediately after a test issues a replSetSyncFrom command, the "sync source is 30 seconds behind another viable source" logic can kick in and change the sync source again.
      This logic is based on optimes gleaned from heartbeats, so if there is a period of time when a server takes longer than 30 seconds to replicate a write (for example, at startup time when servers are preallocating files on mmap), the test is in danger of hitting this situation.
      Using a failpoint to disable this logic would prevent these types of failures.

      Attachments

        Issue Links

          Activity

            People

              benety.goh@mongodb.com Benety Goh
              milkie@mongodb.com Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: