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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2021-02-08
    • 10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Cheahuychou Mao
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: