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

XMLWordPrintableJSON

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

      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
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: