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

Fix race in replSetGetStatus_new_term_oplog_entry_fields.js

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

      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:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: