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

queryableBackupMode and wiredTigerEngineConfigString flags are incompatible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.19, 3.6.10, 4.0.6, 4.1.7
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6, v3.4
    • Steps To Reproduce:
      Hide

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

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

      Description

      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).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: