[SERVER-38055] Mongod servers started through the shell do not respect TestData.enableMajorityReadConcern Created: 09/Nov/18  Updated: 29/Oct/23  Resolved: 14/Nov/18

Status: Closed
Project: Core Server
Component/s: Replication, Testing Infrastructure
Affects Version/s: 3.6.8, 4.0.4, 4.1.5
Fix Version/s: 3.6.10, 4.0.5, 4.1.6

Type: Bug Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Repl 2018-11-19
Participants:
Linked BF Score: 115

 Description   

We only add enableMajorityReadConcern to the command line arguments if it is set to true in the TestData. This means that mongods started test fixtures do not respect TestData.enableMajorityReadConcern="false". Passthroughs are unaffected. Instead of checking whether jsTest.options().enableMajorityReadConcern is true, we should check that it is not equal to undefined. We should also add a test to ensure that if we set TestData.enableMajorityReadConcern, then the server reports that it does not support committed reads.



 Comments   
Comment by Githook User [ 17/Nov/18 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-38055 Mongod servers started through the shell must respect TestData.enableMajorityReadConcern
Branch: tongo
https://github.com/10gen/mongo-enterprise-modules/commit/696f35ecb5a60c47c2fbb704124ab124a16956cd

Comment by Githook User [ 16/Nov/18 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-38055 Mongod servers started through the shell must respect TestData.enableMajorityReadConcern

(cherry picked from commit a058fc68c52fcc86a4c612c0093a566ea05e853d)
Branch: v3.6
https://github.com/mongodb/mongo/commit/d98a60da0ed7757ffe5f56dda2d94b2265273677

Comment by Githook User [ 16/Nov/18 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-38055 Mongod servers started through the shell must respect TestData.enableMajorityReadConcern

(cherry picked from commit a058fc68c52fcc86a4c612c0093a566ea05e853d)
Branch: v4.0
https://github.com/mongodb/mongo/commit/48d8edbb70092231c0f7c6c4c59af5c6e38a9781

Comment by Githook User [ 14/Nov/18 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-38055 Mongod servers started through the shell must respect TestData.enableMajorityReadConcern
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/696f35ecb5a60c47c2fbb704124ab124a16956cd

Comment by Githook User [ 14/Nov/18 ]

Author:

{'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}

Message: SERVER-38055 Mongod servers started through the shell must respect TestData.enableMajorityReadConcern
Branch: master
https://github.com/mongodb/mongo/commit/a058fc68c52fcc86a4c612c0093a566ea05e853d

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