[SERVER-38434] queryableBackupMode and wiredTigerEngineConfigString flags are incompatible Created: 05/Dec/18  Updated: 29/Oct/23  Resolved: 21/Dec/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.4.19, 3.6.10, 4.0.6, 4.1.7

Type: Bug Priority: Major - P3
Reporter: David Bartley Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6, v3.4
Steps To Reproduce:

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

Sprint: Storage NYC 2018-12-31
Participants:

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



 Comments   
Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-38434 add missing comma to _openWiredTiger config

(cherry picked from commit a171bb5a032ccbed77b1a547ac46bda1894b5429)
Branch: v3.4
https://github.com/mongodb/mongo/commit/5dfeeb8546852a86440b0d9368a065f0aa5e4e08

Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-38434 add missing comma to _openWiredTiger config

(cherry picked from commit a171bb5a032ccbed77b1a547ac46bda1894b5429)
Branch: v3.6
https://github.com/mongodb/mongo/commit/751c047d50268fd48bbb41010ad6c6915b14f829

Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-38434 add missing comma to _openWiredTiger config

(cherry picked from commit a171bb5a032ccbed77b1a547ac46bda1894b5429)
Branch: v4.0
https://github.com/mongodb/mongo/commit/d6b697e0c546521e5c3739ec45160512d149a368

Comment by Githook User [ 21/Dec/18 ]

Author:

{'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek'}

Message: SERVER-38434 add missing comma to _openWiredTiger config
Branch: master
https://github.com/mongodb/mongo/commit/a171bb5a032ccbed77b1a547ac46bda1894b5429

Generated at Thu Feb 08 04:48:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.