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

Race condition in IsMasterIsFalseDuringStepdown unittest

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.14, 4.1.7, 4.0.11
    • Replication
    • None
    • ALL
    • v4.0, v3.6
    • Repl 2019-01-14
    • 0

    Description

      There's a race in the test for "SERVER-37065 Report ismaster:false on learning of new term". The test asserts that "ismaster" is false right away when the primary learns of a new term, which is fine, and it also asserts that "secondary" is still false because the stepdown is incomplete. If the primary transitions to secondary quickly enough, the second assert fails.

      Fix the race with the "blockHeartbeatStepdown" failpoint.

      Attachments

        Issue Links

          Activity

            People

              jesse@mongodb.com A. Jesse Jiryu Davis
              jesse@mongodb.com A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: