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

Server should not startup if other storage engine options are used

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage, Usability
    • Labels:
      None
    • Fully Compatible
    • ALL

      Currenty we just log a warning. I'd argue that we should just return an error and shutdown.

      amidvidy ~/Documents/gitroot/mongo $ ./mongod  --wiredTigerCollectionConfig="bad=foo" --storageEngine=mmapv1
      Collection option: bad=foo
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] MongoDB starting : pid=27307 port=27017 dbpath=/data/db 64-bit host=vader
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] 
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] ** NOTE: This is a development version (2.7.9-pre-) of MongoDB.
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] **       Not recommended for production.
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] 
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] db version v2.7.9-pre-
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] git version: 0549652e913b4c39dc00ec10bd1895c085b27bf3
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] build info: Linux vader 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] allocator: tcmalloc
      2014-11-11T11:40:13.187-0500 I CONTROL  [initandlisten] options: { storage: { engine: "mmapv1", wiredtiger: { collectionConfig: "bad=foo" } } }
      2014-11-11T11:40:13.187-0500 W STORAGE  [initandlisten] Detected configuration for non-active storage engine wiredtiger when current storage engine is mmapv1
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: