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

Missing expected field "protocolVersion", but that field has a default value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.6, 4.4.0-rc0, 4.7.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2
    • Sprint:
      Repl 2020-03-09, Repl 2020-03-23

      Description

      Command

       

      rs.reconfig(
        {
          _id : "rs",
          members: [
            { _id : 0, host : "..." },
            { _id : 1, host : "..." },
          ]
        }
      )
      
      

       

      Error:

       

      "errmsg" : "Missing expected field \"protocolVersion\""
      "code" : 93
      "codeName" : "InvalidReplicaSetConfig",

       

      However, https://docs.mongodb.com/manual/reference/replica-configuration/#rsconf.protocolVersion documents a default value of 1 for this field.

        Attachments

          Activity

            People

            Assignee:
            samy.lanka Samyukta Lanka
            Reporter:
            dandv Dan Dascalescu
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: