ExportXMLWordPrintableJSON

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Brad Cater
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: