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

NotWritablePrimary error code name is confusing

    XMLWordPrintable

Details

    • Question
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • 4.9.0-alpha4
    • None
    • None

    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

            backlog-server-repl Backlog - Replication Team
            oleg.pudeyev@mongodb.com Oleg Pudeyev
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: