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

NotWritablePrimary error code name is confusing

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: 4.9.0-alpha4
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      When I see the NotWritablePrimary error code name, I assume it means not (writable primary) and I am wondering if one can have a primary which is not writable and whether such a primary would be suitable for the operation being issued, or for other operations. As well as whether one can have writable non-primaries.

      I assume what the code is intended to convey is that only primaries are writable and the responding node is not a primary.

      If so, the intent can be in my opinion more clearly communicated by using code name like NotWritableNotPrimary.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-repl Backlog - Replication Team
            Reporter:
            oleg.pudeyev Oleg Pudeyev
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: