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

Fix race in replSetGetStatus_new_term_oplog_entry_fields.js

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.1, 4.3.1, 4.0.14
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Repl 2019-09-23, Repl 2019-10-07
    • 7

    Description

      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.

      Attachments

        Activity

          People

            samy.lanka@mongodb.com Samyukta Lanka
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: