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

Assertion and backtrace when invalid WT config option passed

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.8.0-rc0
    • Component/s: Storage
    • Labels:
    • ALL

      Problem

      Get a backtrace and assertion when starting with an invalid WT option

      14-11-15T21:01:48.099-0500 I CONTROL  [initandlisten] MongoDB starting : pid=68484 port=27017 dbpath=/data2/db/db100 64-bit host=ip-10-93-7-23.ec2.internal
      2014-11-15T21:01:48.099-0500 I CONTROL  [initandlisten] db version v2.8.0-rc0
      2014-11-15T21:01:48.099-0500 I CONTROL  [initandlisten] git version: b6c4e2491c1442b05a160acda0d78001f56a2ade
      2014-11-15T21:01:48.099-0500 I CONTROL  [initandlisten] build info: Linux build4.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-15T21:01:48.099-0500 I CONTROL  [initandlisten] allocator: tcmalloc
      2014-11-15T21:01:48.099-0500 I CONTROL  [initandlisten] options: { net: { port: 27017 }, processManagement: { fork: true }, replication: { oplogSizeMB: 500, replSet: "mp" }, storage: { d
      bPath: "/data2/db/db100", engine: "wiredtiger", wiredtiger: { engineConfig: ""checkpoint=(wait=14400)"" } }, systemLog: { destination: "file", path: "/data3/db/db100/server.log" } }
      2014-11-15T21:01:48.100-0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=29G,session_max=20000,extensions=[local=(entry=index_collator_extension)],statistics=(al
      l),log=(enabled=true,archive=true,path=journal),checkpoint=(wait=60,log_size=2GB),"checkpoint=(wait=14400)"
      2014-11-15T21:01:48.102-0500 E STORAGE  [initandlisten] WiredTiger (22) [1416103308:102623][68484:0x7ffff7feeb80], wiredtiger_open: unknown configuration key: 'checkpoint=(wait=14400)': 
      Invalid argument
      2014-11-15T21:01:48.103-0500 I -        [initandlisten] Fatal assertion 28519 UnknownError 22: Invalid argument
      2014-11-15T21:01:48.112-0500 I CONTROL  [initandlisten] 
       0xf6ffb9 0xf17fb1 0xefdc6b 0xd85d24 0xd86afc 0xd85e20 0xa71b81 0x7e3d1c 0x7e8de4 0x7ffff6bf5af5 0x7e1e39
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"400000","o":"B6FFB9"},{"b":"400000","o":"B17FB1"},{"b":"400000","o":"AFDC6B"},{"b":"400000","o":"985D24"},{"b":"400000","o":"986AFC"},{"b":"400000","o":"985E20"},{"b"
      :"400000","o":"671B81"},{"b":"400000","o":"3E3D1C"},{"b":"400000","o":"3E8DE4"},{"b":"7FFFF6BD4000","o":"21AF5"},{"b":"400000","o":"3E1E39"}],"processInfo":{ "mongodbVersion" : "2.8.0-rc
      0", "gitVersion" : "b6c4e2491c1442b05a160acda0d78001f56a2ade", "uname" : { "sysname" : "Linux", "release" : "3.10.0-123.el7.x86_64", "version" : "#1 SMP Mon May 5 11:16:57 EDT 2014", "ma
      chine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000" }, { "b" : "7FFFF88FA000", "elfType" : 3 }, { "b" : "7FFFF7BC0000", "path" : "/lib64/libpthread.so.0", "elfType" : 3 }, {
       "b" : "7FFFF79B8000", "path" : "/lib64/librt.so.1", "elfType" : 3 }, { "b" : "7FFFF77B4000", "path" : "/lib64/libdl.so.2", "elfType" : 3 }, { "b" : "7FFFF74AD000", "path" : "/lib64/libs
      tdc++.so.6", "elfType" : 3 }, { "b" : "7FFFF71AB000", "path" : "/lib64/libm.so.6", "elfType" : 3 }, { "b" : "7FFFF6F95000", "path" : "/lib64/libgcc_s.so.1", "elfType" : 3 }, { "b" : "7FF
      FF6BD4000", "path" : "/lib64/libc.so.6", "elfType" : 3 }, { "b" : "7FFFF7DDC000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3 } ] }}
       mongod(_ZN5mongo15printStackTraceERSo+0x29) [0xf6ffb9]
       mongod(_ZN5mongo10logContextEPKc+0xE1) [0xf17fb1]
       mongod(_ZN5mongo23fassertFailedWithStatusEiRKNS_6StatusE+0xAB) [0xefdc6b]
       mongod(_ZN5mongo13invariantWTOKEi+0x24) [0xd85d24]
       mongod(_ZN5mongo18WiredTigerKVEngineC2ERKSsS2_b+0x2BC) [0xd86afc]
       mongod(+0x985E20) [0xd85e20]
       mongod(_ZN5mongo23GlobalEnvironmentMongoD22setGlobalStorageEngineERKSs+0xF1) [0xa71b81]
       mongod(_ZN5mongo13initAndListenEi+0x6EC) [0x7e3d1c]
       mongod(main+0x134) [0x7e8de4]
       libc.so.6(__libc_start_main+0xF5) [0x7ffff6bf5af5]
       mongod(+0x3E1E39) [0x7e1e39]
      -----  END BACKTRACE  -----
      

      Reproduce

      mongod --port 27017 --dbpath /data2/db/db100 --logpath /data3/db/db100/server.log --fork --storageEngine=wiredtiger --wiredTigerEngineConfig '"checkpoint=(wait=14400)"' --replSet mp --oplogSize 500
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: