Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49392

Make storage engine init check that enableMajorityReadConcern is compatible with supportsReadConcernMajority

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • Minor Change
    • Execution Team 2020-08-24
    • 25

      The enableMajorityReadConcern server parameter defaults to true, even when using a storage engine where supportsReadConcernMajority() is false. Ideally it should default to false in such cases, however, implementing this is probably more effort than it's worth (it only affects test storage engines). Instead, storage engine creation/init should check if supportsReadConcernMajority is false and enableMajorityReadConcern is true, and handle it accordingly: either force enableMajorityReadConcern to false (if it isn't too late to do that), or else abort startup with an error message (saying that this combination isn't valid and enableMajorityReadConcern must be disabled to run with this storage engine).

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            kevin.pulo@mongodb.com Kevin Pulo
            0 Vote for this issue
            6 Start watching this issue