dont_read_oplog_hole_on_step_up.js should wait until primary is writable

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.0-rc11, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4, v4.2
    • Execution Team 2020-06-29
    • 8
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This test only waits for the node transitions to primary, but not after it starts accepting writes. This causes the test to fail intermittently.

      We should add something like this to ensure the node is writable:

      assert.soon(() => newPrimary.adminCommand({isMaster: 1}).ismaster);
      

              Assignee:
              Louis Williams
              Reporter:
              Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: