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

Race condition in IsMasterIsFalseDuringStepdown unittest

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.14, 4.1.7, 4.0.11
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • v4.0, v3.6
    • Repl 2019-01-14
    • 0

      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.

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

              Created:
              Updated:
              Resolved: