-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication, Replication - Oplog and Recovery
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Commands like replSetStepDown can fail due to race conditions. We should therefore disallow
assert.commandWorked(newPrimary.adminCommand({replSetStepUp: 1}));
and instead use something like
assert.soon(() => { assert.commandWorked(newPrimary.adminCommand({replSetStepUp: 1})); return true; });
For the rare cases that require that a single command succeed, we should provide a // NOLINT.
This would have caught BF-44771 and BF-46860.
- action item for
-
SERVER-139005 Consider wrapping replSetStepUp and replSetStepDown in retry helpers in jstests
-
- Closed
-