[SERVER-45143] Missing expected field "protocolVersion", but that field has a default value Created: 13/Dec/19  Updated: 29/Oct/23  Resolved: 09/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.6, 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Dan Dascalescu Assignee: Samyukta Lanka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Sprint: Repl 2020-03-09, Repl 2020-03-23
Participants:

 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.



 Comments   
Comment by Githook User [ 02/Apr/20 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-45143 use default value for 'protocolVersion' field during reconfigs

(cherry picked from commit 604c0afc97799516ba37880932948dbb008aa862)
Branch: v4.2
https://github.com/mongodb/mongo/commit/66886af75810e679ad873d6dc4e844096c8f7ff2

Comment by Githook User [ 27/Mar/20 ]

Author:

{'name': 'Samy Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-45143 use default value for 'protocolVersion' field during reconfigs

(cherry picked from commit 604c0afc97799516ba37880932948dbb008aa862)

SERVER-46974 Blacklist reconfig_uses_default_protocolVersion.js from replica_sets_multiversion

(cherry picked from commit 9e49b1110024a0bdc927498c39e4e3524d14b070)
Branch: v4.4
https://github.com/mongodb/mongo/commit/d62507818d06d5278879bf60fac2ea00f898016d

Comment by Githook User [ 09/Mar/20 ]

Author:

{'name': 'Samy Lanka', 'username': 'lankas', 'email': 'samy.lanka@mongodb.com'}

Message: SERVER-45143 use default value for 'protocolVersion' field during reconfigs
Branch: master
https://github.com/mongodb/mongo/commit/604c0afc97799516ba37880932948dbb008aa862

Comment by Danny Hatcher (Inactive) [ 19/Dec/19 ]

I believe this was changed via SERVER-36052. I'm not sure the reasoning behind erroring out on the reconfig so I'll pass to our Replication team to take a look.

Comment by Dan Dascalescu [ 16/Dec/19 ]

Sure, it's client/server. v4.2.2

Comment by Eric Sedor [ 16/Dec/19 ]

Hi dandv

Can you clarify the version you are seeing this on?

Gratefully,
Eric

Generated at Thu Feb 08 05:08:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.