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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.4
    • Affects Version/s: 3.4.3
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2017-04-17
    • 0

      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);
      

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

              Created:
              Updated:
              Resolved: