[SERVER-56146] Incorrect commitQuorum error message Created: 16/Apr/21  Updated: 29/Oct/23  Resolved: 13/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: James Wahlin Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-63531 commitQuorum incorrectly includes bui... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-01-10, Execution Team 2022-01-24
Participants:

 Description   

On attempting to build an index with a commitQuorem of 51, the following error message is returned:

MongoDB Enterprise mongos> db.test.createIndex({foo: 1}, {},  51);
{
	"ok" : 0,
	"errmsg" : "commitQuorum has to be a non-negative number and not greater than 50",
	"code" : 9,
	"codeName" : "FailedToParse",
	"$clusterTime" : {
		"clusterTime" : Timestamp(1618595665, 2),
		"signature" : {
			"hash" : BinData(0,"DoXuzbbc3DFYux4CmBjsxioEjAM="),
			"keyId" : NumberLong("6950651909917114371")
		}
	},
	"operationTime" : Timestamp(1618595664, 7)
} 

commitQuorem is only supposed to apply to voting members and the upper limit for voting members is 7 rather than 50. 

 



 Comments   
Comment by Githook User [ 12/Jan/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-56146 Fix commitQuorum error message
Branch: master
https://github.com/mongodb/mongo/commit/0796354eecd6565aeaf494c1f580f3440ba2bd7a

Comment by Githook User [ 10/Jan/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: Revert "SERVER-56146 Fix commitQuorum check against the number of voting members"

This reverts commit 7d298869c1e7a5e39bcb5368af611fce34b96c39.
Branch: master
https://github.com/mongodb/mongo/commit/f27140f68f269a386ee6d33e22abb9a59f359803

Comment by Githook User [ 10/Jan/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com'}

Message: SERVER-56146 Fix commitQuorum check against the number of voting members
Branch: master
https://github.com/mongodb/mongo/commit/7d298869c1e7a5e39bcb5368af611fce34b96c39

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