[SERVER-16297] Can't seem to override "checkpoint" in WT config in rc1 Created: 24/Nov/14  Updated: 16/Dec/14  Resolved: 24/Nov/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Problem

Can't see to override the default for "checkpoint" in WT startup. The server fails to start and you get the following in the log

2014-11-24T09:31:43.196-0800 I CONTROL  [initandlisten] MongoDB starting : pid=1819 port=27017 dbpath=/ssd-1tb/db 64-bit host=bismark
2014-11-24T09:31:43.196-0800 I CONTROL  [initandlisten] db version v2.8.0-rc1
2014-11-24T09:31:43.196-0800 I CONTROL  [initandlisten] git version: c8171e7f969519af8b87a43425ae291ee69a0191
2014-11-24T09:31:43.196-0800 I CONTROL  [initandlisten] build info: Linux build14.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-11-24T09:31:43.196-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2014-11-24T09:31:43.196-0800 I CONTROL  [initandlisten] options: { processManagement: { fork: true }, storage: { dbPath: "/ssd-1tb/db", engine: "wiredTiger", wiredTiger: { engineConfig: ""checkpoint=(wait=4800)"" } }, systemLog: { destination: "file", path: "/data3/db/server.log" } }
2014-11-24T09:31:43.196-0800 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=15G,session_max=20000,extensions=[local=(entry=index_collator_extension)],statistics=(all),log=(enabled=true,archive=true,path=journal),checkpoint=(wait=60,log_size=2GB),"checkpoint=(wait=4800)"
2014-11-24T09:31:43.196-0800 E STORAGE  [initandlisten] WiredTiger (22) [1416850303:196491][1819:0x7f6f2455cb80], wiredtiger_open: unknown configuration key: 'checkpoint=(wait=4800)': Invalid argument
2014-11-24T09:31:43.196-0800 I -        [initandlisten] Fatal Assertion 28561
2014-11-24T09:31:43.196-0800 I -        [initandlisten]

Reproduce

home/alvin/mongodb-linux-x86_64-2.8.0-rc1/bin/mongod --dbpath /ssd-1tb/db --logpath /data3/db/server.log --fork --wiredTigerEngineConfig '"checkpoint=(wait=4800)"' --storageEngine=wiredTiger



 Comments   
Comment by John Page [ 16/Dec/14 ]

Alvin - I'm seeing the same issue - without any extra quotes

  /home/ec2-user/mongodb-linux-x86_64-e067fff4e3f3079d070ec168f32c24db9a51a944-2014-12-12/bin/mongod --dbpath /data/db --logpath /data/logs/wt2.log --storageEngine=wiredTiger --fork --wiredTigerEngineConfig checkpoint=\(wait=2\)

2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] MongoDB starting : pid=934 port=27017 dbpath=/data/db 64-bit host=ip-10-10-2-81
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] 
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] db version v2.8.0-rc3-pre-
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] git version: e067fff4e3f3079d070ec168f32c24db9a51a944
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] build info: Linux build2.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2014-12-16T16:09:35.654+0000 I CONTROL  [initandlisten] options: { processManagement: { fork: true }, storage: { dbPath: "/data/db", engine: "wiredTiger", wiredTiger: { engineConfig: "checkpoint=(wait=2)" } }, systemLog: { destination: "file", path: "/data/logs/wt2.log" } }
2014-12-16T16:09:35.654+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=14G,session_max=20000,extensions=[local=(entry=index_collator_extension)],statistics=(all),log=(enabled=true,archive=true,path=journal,compressor=snappy),checkpoint=(wait=60,log_size=2GB),checkpoint=(wait=2)

did you resolve it?

Comment by Alvin Richards (Inactive) [ 24/Nov/14 ]

script passed in additional quotes - which cased the problem.

Comment by Alvin Richards (Inactive) [ 24/Nov/14 ]

Looks like there is a problem in the script launching - will investigate.

Comment by Eric Milkie [ 24/Nov/14 ]

I think the problem is that you are explicitly quoting the argument, thus making the key look like checkpoint=(wait=4800) instead of checkpoint.

Comment by Alvin Richards (Inactive) [ 24/Nov/14 ]

The command line options are appended to the options being built, but no de-duplicated.

/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
142         ss << "checkpoint=(wait=60,log_size=2GB),";
143         ss << extraOpenOptions;

Generated at Thu Feb 08 03:40:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.