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

Use waitForState in rslib.js for rollback_after_enabling_majority_reads.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • 4.0.16
    • Replication
    • None
    • ALL
    • Repl 2020-02-24

    Description

      In rollback_after_enabling_majority_reads.js, we have a race condition where we execute the validate command before we wait for the node to be in the SECONDARY state. This is likely because we use the waitForState func in ReplSetTest, which waits for the state as indicated by the primary. Instead, we should use the waitForState command in rslib.js, which runs waitForMemberState on the node itself.

      Attachments

        Activity

          People

            xuerui.fa@mongodb.com Xuerui Fa
            xuerui.fa@mongodb.com Xuerui Fa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: