[SERVER-54669] Make 10058 a stable/reserved "LegacyNotPrimary" error code Created: 19/Feb/21  Updated: 29/Oct/23  Resolved: 08/Apr/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

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

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Sprint: Repl 2021-03-22, Repl 2021-04-05, Repl 2021-04-19
Participants:

 Description   

As discussed inĀ HELP-22228, <=3.2 servers used to return the following state change error:

{ok: 0, code: 10058, errmsg: "not master"}

Error code 10058 is currently "unstable" but the drivers to would like to add it to our client-side list of state change error codes. We'd like the server to do the same to ensure that error code 10058 doesn't accidentally get reused for non-state change errors in the future.



 Comments   
Comment by Githook User [ 08/Apr/21 ]

Author:

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

Message: SERVER-54669 Make 10058 a stable/reserved LegacyNotPrimary error code
Branch: master
https://github.com/mongodb/mongo/commit/5b4ca428f196bcc7b09fe5f7789b6b5c6d8fd655

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