Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40066

Finish updating ReplSetTest to expect connections to survive stepdown

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication

      I see two places where replsettest.js has code to handle closed connections during stepdown, these are obsolete.

      this.reInitiate=function() {
      varconfig=this.getReplSetConfigFromNode();
      varnewConfig=this.getReplSetConfig();
      // Only reset members.
      config.members=newConfig.members;
      config.version+=1;
      
      this._setDefaultConfigOptions(config);
      
      assert.adminCommandWorkedAllowingNetworkError(this.getPrimary(), {replSetReconfig:config});
      };
      

      And:

      retryOnNetworkError(function() {
      // The primary may unexpectedly step down during startup if under heavy load
      // and too slowly processing heartbeats. When it steps down, it closes all of
      // its connections.
      _constructFromExistingSeedNode(opts);
      }, 60);
       

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: