Info
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.
Top User Comments
xgen-internal-githook commented on Thu, 2 Apr 2020 15:58:55 +0000:
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
xgen-internal-githook commented on Fri, 27 Mar 2020 22:43:48 +0000:
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
xgen-internal-githook commented on Mon, 9 Mar 2020 17:08:04 +0000:
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
daniel.hatcher commented on Thu, 19 Dec 2019 20:21:49 +0000:
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.
dandv commented on Mon, 16 Dec 2019 17:20:27 +0000:
Sure, it's client/server. v4.2.2
eric.sedor commented on Mon, 16 Dec 2019 16:01:05 +0000:
Hi dandv
Can you clarify the version you are seeing this on?
Gratefully,
Eric