[SERVER-40066] Finish updating ReplSetTest to expect connections to survive stepdown Created: 11/Mar/19  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-38755 Stop closing connections on stepdown ... Closed
Assigned Teams:
Replication
Participants:

 Description   

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);
 


Generated at Thu Feb 08 04:53:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.