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

NotWritablePrimary error code name is confusing

    • Type: Icon: Question Question
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.9.0-alpha4
    • Component/s: None
    • Replication

      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.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: