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

dont_read_oplog_hole_on_step_up.js should wait until primary is writable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: