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

mongod should fail to start when configuring journaling with a storage engine that doesn't support it

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2.0
    • Component/s: Storage, WiredTiger
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Storage 2017-07-10, Storage 2017-07-31, Storage 2017-08-21
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      MongoDB Enterprise > db.a.insert({}, {writeConcern:{j:true}})
      WriteResult({
      	"writeError" : {
      		"code" : 2,
      		"errmsg" : "cannot use 'j' option when a host does not have journaling enabled"
      	}
      })
      MongoDB Enterprise > db.adminCommand("getCmdLineOpts")
      {
      	"argv" : [
      		"./mongod",
      		"--storageEngine",
      		"inMemory",
      		"--journal"
      	],
      	"parsed" : {
      		"storage" : {
      			"engine" : "inMemory",
      			"journal" : {
      				"enabled" : true
      			}
      		}
      	},
      	"ok" : 1
      }
      

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: