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

step_down_during_draining.js should wait for writes to be durable before disable replication on secondaries using fail point

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.4.3
    • 3.4.4
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-04-17
    • 0

    Description

      On slow machines, it may be possible that the durable optime has not caught up with the committed optime before we disable replication the secondaries. This may lead to failed elections when we request one of the secondaries to step up to become primary.

          replSet.awaitReplication();
       
          // Enable fail point to stop replication.
          var secondaries = replSet.getSecondaries();
          secondaries.forEach(enableFailPoint);
      ...
          stepUp(secondary);
      

      Attachments

        Issue Links

          Activity

            People

              benety.goh@mongodb.com Benety Goh
              benety.goh@mongodb.com Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: