[SERVER-41846] createIndexes should reject invalid commitQuorum Created: 20/Jun/19  Updated: 29/Oct/23  Resolved: 25/Jun/19

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

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-39454 Move createIndexes command fully onto... Closed
Related
is related to SERVER-37954 Thread commitQuorum through the creat... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-07-01
Participants:

 Description   

The createIndexes command parses and rejects invalid any commitQuorum (format: number) parameter when the IndexBuildsCoordinator is enabled. However, in the default mode, this parameter is ignored. Some JS tests are passing in a writeConcern for the commitQuorum but these are not detected without the IndexBuildsCoordinator.



 Comments   
Comment by Benety Goh [ 25/Jun/19 ]

The function parseAndGetCommitQuorum() was added in SERVER-37954.

Comment by Githook User [ 25/Jun/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-41846 createIndexes command validates commitQuorum field
Branch: master
https://github.com/mongodb/mongo/commit/86df3cbd460911d11a99152104e726075ae26b22

Comment by Githook User [ 25/Jun/19 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-41846 commit quorum should default to 1 node if replication is not enabled.
Branch: master
https://github.com/mongodb/mongo/commit/ac78e0221640846712f602fa42ca2dd375df5340

Comment by Benety Goh [ 25/Jun/19 ]

re-opening due to bug in mongo_embedded_test (MongodbCAPITest/CreateIndex) found during testing.

Comment by Githook User [ 25/Jun/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-41846 fix write concern in js tests for createIndexes
Branch: master
https://github.com/mongodb/mongo/commit/b855e5562dbf2404a7857c110dbb39b451bf13f3

Generated at Thu Feb 08 04:58:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.