[SERVER-48582] Change StaleConfig error code in 'newlyAdded' field removal reconfig Created: 04/Jun/20  Updated: 29/Oct/23  Resolved: 04/Jun/20

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

Type: Bug Priority: Major - P3
Reporter: Vesselina Ratcheva (Inactive) Assignee: Vesselina Ratcheva (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-47128 Test race between newlyAdded reconfig... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2020-06-15
Participants:

 Description   

While it sounds right for the situtation, it is very much a sharding-specific error. This is actually one of the codes that requires an ExtraErrorInfo object; the StaleConfig version of that (StaleConfigInfo) needs real sharding info, like the shardId, which we do not (and should not) have access to in the ReplicationCoordinator. The simplest solution is to just replace this error code with a different one.



 Comments   
Comment by Githook User [ 04/Jun/20 ]

Author:

{'name': 'Vesselina Ratcheva', 'email': 'vesselina.ratcheva@10gen.com', 'username': 'vessy-mongodb'}

Message: SERVER-48582 Change StaleConfig error code in 'newlyAdded' field removal reconfig
Branch: master
https://github.com/mongodb/mongo/commit/30f5448e95114d344e6acffa92856536885e35dd

Generated at Thu Feb 08 05:17:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.