...
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.
xgen-internal-githook commented on Sat, 17 Nov 2018 01:53:41 +0000: 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 xgen-internal-githook commented on Fri, 16 Nov 2018 22:25:49 +0000: 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 xgen-internal-githook commented on Fri, 16 Nov 2018 22:25:02 +0000: 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 xgen-internal-githook commented on Wed, 14 Nov 2018 18:05:37 +0000: 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 xgen-internal-githook commented on Wed, 14 Nov 2018 18:05:32 +0000: 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
MongoDB Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.