Fix race in replSetGetStatus_new_term_oplog_entry_fields.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.1, 4.3.1, 4.0.14
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Repl 2019-09-23, Repl 2019-10-07
    • 7
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In trying to test that we correctly report the time the new term oplog entry was majority committed. We call awaitReplication before checking the metrics, but awaitReplication doesn't guarantee that the majority commit point has advanced yet. Since there is a race there, we should use awaitLastOpCommitted instead.

            Assignee:
            Samyukta Lanka
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: