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

Run st.configRS.awaitReplication() before running replSetStepUp in sharded_index_consistency_metrics.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2021-02-08
    • 10

    Description

      It's possible that st.config1's lastApplied opTime is behind the lastApplied opTime of the other config server nodes, and that would cause replSetStepUp to fail the dry-run election. To ensure that the command succeeds, we need to run st.configRS.awaitReplication() right before running replSetStepUp just like in ReplSetTest.stepUp.

      Attachments

        Activity

          People

            cheahuychou.mao@mongodb.com Cheahuychou Mao
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: