[SERVER-13379] Canonicalize options for getCmdlineOpts.parsed Created: 27/Mar/14  Updated: 11/Jul/16  Resolved: 01/Apr/14

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: 2.6.0-rc3

Type: Bug Priority: Major - P3
Reporter: Shaun Verch Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-13372 getCmdLineOpts.parsed showing journal... Closed
Related
related to SERVER-13872 Treat switches like booleans in binar... Closed
is related to SERVER-13416 Rename security.authentication option... Closed
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

Currently the contents of "getCmdLineOpts.parsed" are implementation dependent, since they represent the raw result of parsing the command line. For example, if there is an option that can be expressed as "--val" on the command line and "section.val" in a config file, the representation will be

{ val : true }

and

{ section : { val : true } }

respectively, rather than having a single canonical representation.



 Comments   
Comment by Githook User [ 01/Apr/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Fixing parsed naming of jsonp option in mongos
(cherry picked from commit 7863f05cb1cdb2d56d1f31928ec10521ac4f55f6)
Branch: v2.6
https://github.com/mongodb/mongo/commit/7ad0dc7be078ad948cc0d679b2a06160ae00fa6c

Comment by Githook User [ 01/Apr/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Fixing parsed naming of jsonp option in mongos
Branch: master
https://github.com/mongodb/mongo/commit/7863f05cb1cdb2d56d1f31928ec10521ac4f55f6

Comment by Eric Milkie [ 01/Apr/14 ]

I think the remaining code reviews should go in a new ticket and we'll target it at 2.7.

Comment by Githook User [ 29/Mar/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-13379 jstests that start servers can't live in core

(cherry picked from commit 91a7d38a6beaf53aeb5390e64da7366db5b9d858)
Branch: v2.6
https://github.com/mongodb/mongo/commit/b1ee91acf6bddc7776f6ab3ab40abcb727f9cc26

Comment by Githook User [ 29/Mar/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-13379 jstests that start servers can't live in core
Branch: master
https://github.com/mongodb/mongo/commit/91a7d38a6beaf53aeb5390e64da7366db5b9d858

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize noAutoSplit as sharding.autoSplit
(cherry picked from commit a574286b4f6d487bc18b214fba8aec5a0f64de66)
Branch: v2.6
https://github.com/mongodb/mongo/commit/8af90cc7e196a63791e0b1b30c49e3f7b96bf4dc

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Ensure replication.replSet overrides replication.replSetName
(cherry picked from commit 3fe346dedc89c9d154b1de30d497ae0caa529ecc)
Branch: v2.6
https://github.com/mongodb/mongo/commit/f9841e0136d9f7a667662581cda9ce9ddfbf20d8

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize noIndexBuildRetry as storage.indexBuildRetry
(cherry picked from commit 8d7e71c8c07ff15ece15d5494a77ed42fc309f11)
Branch: v2.6
https://github.com/mongodb/mongo/commit/2f9a07b9aabd0f098b8e17c3f725dc2e353c242b

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize profile as operationProfiling.mode
(cherry picked from commit 6ddce18d5ac886e9dadefb009454d4c8f0d2f5ae)
Branch: v2.6
https://github.com/mongodb/mongo/commit/a73fb4cab5dbc5caf18ebccd3d6ef0eda3fd6d96

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize shardsvr and configsvr as sharding.clusterRole
(cherry picked from commit 1c2ec3d69bbb5b6ae34f57abf1fabcaf32833a57)
Branch: v2.6
https://github.com/mongodb/mongo/commit/9537c9c5355de719d367914deb1f57bc8c6b5017

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize moveParanoia and noMoveParanoia as sharding.archiveMovedChunks
(cherry picked from commit 3973a76ece2b85b8258831ae7dae97e8e3da8eec)
Branch: v2.6
https://github.com/mongodb/mongo/commit/ce4afbc1c211559b33f7fd2145cd7b4120ce9113

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize sslOnNormalPorts as net.ssl.mode
(cherry picked from commit 0c9df5cebac7a7a9f7a7e5c296af054cc71d20bd)
Branch: v2.6
https://github.com/mongodb/mongo/commit/9c93634cccba831bb53c7be8d0719061978dde3f

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize logpath as systemLog.destination and systemLog.path
(cherry picked from commit 064fcf3fec061e0f3493f813016ee96a3668d14d)
Branch: v2.6
https://github.com/mongodb/mongo/commit/0c1fa12980c7b5489213f2349c0bc1f3d338c8f3

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize verbose and v options as systemLog.verbosity
(cherry picked from commit 41d6c151f40d40ef0673bb4e5e28d8e9c15e3cc0)
Branch: v2.6
https://github.com/mongodb/mongo/commit/0d2fe93ded0fd0a8f5663ab9aa98ee45bd6068eb

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize nounixsocket as net.unixDomainSocket.enabled
(cherry picked from commit 9f0e88d0a4c00c125ce52d3954503dd1c91eae7c)
Branch: v2.6
https://github.com/mongodb/mongo/commit/f81b9676fa3dac6aa24c03a0a97ee4b74e352706

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize noprealloc as storage.preallocDataFiles
(cherry picked from commit c5f52ad447f5ae0c1c577c270bff91c5af0d3436)
Branch: v2.6
https://github.com/mongodb/mongo/commit/1b9917b39c4fa37fd2a5e42c78e5f1e50c4c50cc

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize httpinterface and nohttpinterface to net.http.enabled
(cherry picked from commit 0a6b69f8b24b474749f5d4227d64ccb034229739)
Branch: v2.6
https://github.com/mongodb/mongo/commit/2005e174be33429519b519550e7d0dec9b607251

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize auth and noauth as security.authentication
(cherry picked from commit cbdf562d57b8419aaea83c26effbba14652ea7b3)
Branch: v2.6
https://github.com/mongodb/mongo/commit/dcabd35e333ceeee3a8d944249fcde32a5ea631a

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Do not mark Environment as valid before canonicalization is done in mongos
(cherry picked from commit 9265798fae9f784bff50755260c9536e15ceb7d7)
Branch: v2.6
https://github.com/mongodb/mongo/commit/7f6bf41feeccd2a2ba4f191277a64221231c73e2

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize objcheck and noobjcheck as net.wireObjectCheck
(cherry picked from commit 086c91313022d75c4ba6a8ee4655c61c84ed2590)
Branch: v2.6
https://github.com/mongodb/mongo/commit/1b7fe7694cbf556ef9c307994a4ca273d9f06073

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize noAutoSplit as sharding.autoSplit
Branch: master
https://github.com/mongodb/mongo/commit/a574286b4f6d487bc18b214fba8aec5a0f64de66

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Ensure replication.replSet overrides replication.replSetName
Branch: master
https://github.com/mongodb/mongo/commit/3fe346dedc89c9d154b1de30d497ae0caa529ecc

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize noIndexBuildRetry as storage.indexBuildRetry
Branch: master
https://github.com/mongodb/mongo/commit/8d7e71c8c07ff15ece15d5494a77ed42fc309f11

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize profile as operationProfiling.mode
Branch: master
https://github.com/mongodb/mongo/commit/6ddce18d5ac886e9dadefb009454d4c8f0d2f5ae

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize shardsvr and configsvr as sharding.clusterRole
Branch: master
https://github.com/mongodb/mongo/commit/1c2ec3d69bbb5b6ae34f57abf1fabcaf32833a57

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize moveParanoia and noMoveParanoia as sharding.archiveMovedChunks
Branch: master
https://github.com/mongodb/mongo/commit/3973a76ece2b85b8258831ae7dae97e8e3da8eec

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize sslOnNormalPorts as net.ssl.mode
Branch: master
https://github.com/mongodb/mongo/commit/0c9df5cebac7a7a9f7a7e5c296af054cc71d20bd

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize logpath as systemLog.destination and systemLog.path
Branch: master
https://github.com/mongodb/mongo/commit/064fcf3fec061e0f3493f813016ee96a3668d14d

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize verbose and v options as systemLog.verbosity
Branch: master
https://github.com/mongodb/mongo/commit/41d6c151f40d40ef0673bb4e5e28d8e9c15e3cc0

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize nounixsocket as net.unixDomainSocket.enabled
Branch: master
https://github.com/mongodb/mongo/commit/9f0e88d0a4c00c125ce52d3954503dd1c91eae7c

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize noprealloc as storage.preallocDataFiles
Branch: master
https://github.com/mongodb/mongo/commit/c5f52ad447f5ae0c1c577c270bff91c5af0d3436

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize httpinterface and nohttpinterface to net.http.enabled
Branch: master
https://github.com/mongodb/mongo/commit/0a6b69f8b24b474749f5d4227d64ccb034229739

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize auth and noauth as security.authentication
Branch: master
https://github.com/mongodb/mongo/commit/cbdf562d57b8419aaea83c26effbba14652ea7b3

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Do not mark Environment as valid before canonicalization is done in mongos
Branch: master
https://github.com/mongodb/mongo/commit/9265798fae9f784bff50755260c9536e15ceb7d7

Comment by Githook User [ 28/Mar/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-13379 Canonicalize objcheck and noobjcheck as net.wireObjectCheck
Branch: master
https://github.com/mongodb/mongo/commit/086c91313022d75c4ba6a8ee4655c61c84ed2590

Comment by Shaun Verch [ 27/Mar/14 ]

Full list of options that need to be canonicalized:

## Authentication
(no)auth [legacy] -> security.authentication [new]
 
## Objcheck
(no)objcheck [legacy] -> net.wireObjectCheck [new]
 
## HTTP interface
(no)httpinterface [legacy] -> net.http.enabled [new]
 
## Data file preallocation
noprealloc [legacy] -> storage.preallocDataFiles [new]
 
## Unix socket
nounixsocket [legacy] -> net.unixDomainSocket.enabled [new]
 
## System log
logpath [legacy] -> (systemLog.path/systemLog.destination) [new]
 
## Verbosity
(verbose/vvvvvvvvvvvvvvvv) [legacy] -> systemLog.verbosity [new]
 
## SSL Mode
(net.ssl.sslOnNormalPorts/sslOnNormalPorts) [legacy] -> net.ssl.mode [both]
 
## Move paranoia
sharding.noMoveParanoia [legacy] -> sharding.archiveMovedChunks [both]
 
## Sharded cluster role
(sharding.configsvr/sharding.shardsvr) [legacy] -> sharding.clusterRole [new]
 
## Journaling
(journal/nojournal/dur/nodur) [legacy] -> storage.journal.enabled [new]
durOptions [legacy] -> storage.journal.debugFlags [both]
 
## Profiling
profile [legacy] -> operationProfiling.mode [new]
 
## Index Build Retry
noIndexBuildRetry [legacy] -> storage.indexBuildRetry [new]
 
## Autosplit
noAutoSplit [legacy] -> sharding.autoSplit [new]
 
## Replica set name
replication.replSet [legacy] -> replication.replSetName [new]
 
## SASL options from "setParameter"
setParameter "authenticationMechanisms" -> security.sasl.authenticationMechanisms
setParameter "saslHostName" -> security.sasl.hostName
setParameter "saslServiceName" -> security.sasl.serviceName
setParameter "saslauthdPath" -> security.sasl.saslauthdSocketPath

Comment by Shaun Verch [ 27/Mar/14 ]

Options only allowed in legacy sources that do not have a different representation in the parsed representation (and thus are not split into sections):

nopreallocj
fastsync
pretouch
command
nohints
enableExperimentalIndexStatsCmd
enableExperimentalStorageDetailsCmd
master
slave
source
only
slavedelay
upgrade
repair
noscripting
notablescan
autoresync
diaglog
cpu
sysinfo

Comment by Shaun Verch [ 27/Mar/14 ]

Another question here is how to handle the "setParameter" option, since there are options settable in the new config file that are only settable via setParameter otherwise.

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