queryableBackupMode and wiredTigerEngineConfigString flags are incompatible

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.4.19, 3.6.10, 4.0.6, 4.1.7
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6, v3.4
    • Hide

      Run mongod with --wiredTigerEngineConfigString cache_size=64M --queryableBackupMode.

      Show
      Run mongod with --wiredTigerEngineConfigString cache_size=64M --queryableBackupMode .
    • Storage NYC 2018-12-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If you try to use both of them, you'll get an "Invalid argument" error.  For example, if you pass --wiredTigerEngineConfigString cache_size=64M --queryableBackupMode, mongo will end up passing the string ...,cache_size=64Mreadonly=true, to WiredTiger.

      The bug is at https://github.com/mongodb/mongo/blob/b7a866da63617afe5bbb98d13b905fab63449209/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp#L513; that should be ss << ",readonly=true,"; (note the addition of the leading comma).

              Assignee:
              Gregory Wlodarek
              Reporter:
              David Bartley
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: