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.
Run st.configRS.awaitReplication() before running replSetStepUp in sharded_index_consistency_metrics.js
- Assignee:
-
Cheahuychou Mao
- Reporter:
-
Cheahuychou Mao
- Votes:
-
0 Vote for this issue - Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: