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

Race condition in IsMasterIsFalseDuringStepdown unittest

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.14, 4.1.7, 4.0.11
    • None
    • 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

        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: