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

queryableBackupMode and wiredTigerEngineConfigString flags are incompatible

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Gregory Wlodarek
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: