[SERVER-65455] Constructed ReplSetConfig should always construct the recipientConfig Created: 11/Apr/22  Updated: 29/Oct/23  Resolved: 14/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-04-18
Participants:
Linked BF Score: 172

 Description   

The problem is that when we compared the oldConfig vs the newConfig in the replication_coordinator, the newConfig is constructed from the MutableReplSetConfig which removes the data for `recipientConfig`.

So eventually when we compare the old vs new config, the new config no longer holds the recipientConfig and the comparison fails.

We should ensure that the `recipientConfig` is always set if it was previously present on the object it is constructed from.



 Comments   
Comment by Githook User [ 13/Apr/22 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-65455 Constructed ReplSetConfig should always construct the recipientConfig
Branch: master
https://github.com/mongodb/mongo/commit/7cd85c022e49221ad3076e68dbbf0201f6a1d5e0

Generated at Thu Feb 08 06:02:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.