...
setFeatureCompatibilityVersion reads the in-memory FCV value and then calls FeatureCompatibilityVersion::updateFeatureCompatibilityVersionDocument, which will use that FCV value we read to look up the transitional FCV state. It will fassert that it is found. The problem is that we could have stepped down anywhere here, but we wouldn't realize yet because: a. When setFCV acquires the FCV lock in exclusive mode, it uses the non-interruptible variant of the ExclusiveLock constructor b. We could even have stepped down after having acquired the lock, but before reading the in-memory FCV value. Then, if the new primary runs setFCV and the former primary that is still running setFCV replicates the FCV change, the former primary could attempt to look up an invalid FCV transition and fassert. To address this, FeatureCompatibilityVersion::updateFeatureCompatibilityVersionDocument should check that the opCtx is not interrupted.
JIRAUSER1259052 commented on Wed, 6 Oct 2021 18:32:45 +0000: Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! xgen-internal-githook commented on Thu, 19 Aug 2021 17:24:09 +0000: Author: {'name': 'Vesselina Ratcheva', 'email': 'vesselina.ratcheva@10gen.com', 'username': 'vessy-mongodb'} Message: SERVER-58294 Improve interrupt detection when doing update for setFCV command Branch: master https://github.com/mongodb/mongo/commit/83485c98f17890f29e008d81b5d9cd34c9893182 connie.chen commented on Fri, 30 Jul 2021 19:07:47 +0000: vesselina.ratcheva, I think this ticket's fixversion should be 5.1 required since it's a fix for a Hot BF. CC: elizabeth.roytburd
Repro test: 0001-repro-bf-21787.patch ./buildscripts/resmoke.py run --storageEngine=wiredTiger --storageEngineCacheSizeGB=.50 --suite=sharding --log=file jstests/sharding/bf-21787
Click on a version to see all relevant bugs
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.