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

Make 10058 a stable/reserved "LegacyNotPrimary" error code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2021-03-22, Repl 2021-04-05, Repl 2021-04-19

      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.

        Attachments

          Activity

            People

            Assignee:
            vesselina.ratcheva Vesselina Ratcheva
            Reporter:
            shane.harvey Shane Harvey
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: