Restarting heartbeats in RollbackTest.transitionToSyncSourceOperationsDuringRollback can fail to run if the node is already in rollback

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Repl 2021-02-22
    • 11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When transitioning to kSyncSourceOpsDuringRollback, the rollback test fixture restarts heartbeats on the secondary after it is reconnected. However, it appears that if the node goes into rollback before this restartHeartbeats command goes through, it can fail with

      uncaught exception: Error: error doing query: failed: network error while attempting to run command 'replSetTest' on host 'ip-10-122-83-72:20520'  :
      DB.prototype.runCommand@src/mongo/shell/db.js:177:19
      Mongo.prototype.adminCommand@src/mongo/shell/mongo.js:159:12
      RollbackTest/this.transitionToSyncSourceOperationsDuringRollback@jstests/replsets/libs/rollback_test.js:572:30
      

            Assignee:
            Huayu Ouyang
            Reporter:
            Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: