jstests/serverless/libs/basic_serverless_test.js
/**
     * Remove the recipient nodes from the donor's config memberset and calls replSetReconfig on the
     * updated local config.
     */
Remove the recipient nodes from the donor's config memberset and calls replSetReconfig on the
updated local config.
Remove the recipient nodes from the donor ' s config memberset and calls replSetReconfig on the updated local config .
reconfigDonorSetAfterSplit() {
        const primary = this.donor.getPrimary();
        const config = this.donor.getReplSetConfigFromNode();
        config.version++;
        let donorNodeHosts = [];
        this.donor.nodes.forEach(node => {
            donorNodeHosts.push("" + node.host);
        });
        config.members =
            config.members.filter(member => donorNodeHosts.some(node => node === member.host));
        delete config.recipientConfig;
        assert.commandWorked(primary.adminCommand({replSetReconfig: config}));
    }
reconfigDonorSetAfterSplit ( ) { const primary = this . donor . getPrimary ( ) ; const config = this . donor . getReplSetConfigFromNode ( ) ; config . version ++ ; let donorNodeHosts = [ ] ; this . donor . nodes . forEach ( node => { donorNodeHosts . push ( "" + node . host ) ; } ) ; config . members = config . members . filter ( member => donorNodeHosts . some ( node => node === member . host ) ) ; delete config . recipientConfig ; assert . commandWorked ( primary . adminCommand ( { replSetReconfig : config } ) ) ; }
Remove the recipient nodes from the donor's config memberset and calls replSetReconfig on the
 updated local config.
Remove the recipient nodes from the donor ' s config memberset and calls replSetReconfig on the updated local config .
// TODO(SERVER-65730) we no longer will need to call this method explicitly in the test as // it will be part of the commit shard split process. // remove recipient nodes and config.