Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54669

Make 10058 a stable/reserved "LegacyNotPrimary" error code

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2021-03-22, Repl 2021-04-05, Repl 2021-04-19

      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.

            Assignee:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: