[SERVER-20330] sharding.configsvrMode option not recognized when specified in yaml file Created: 09/Sep/15  Updated: 25/Jan/17  Resolved: 11/Sep/15

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

Type: Bug Priority: Major - P3
Reporter: Timothy Olsen (Inactive) Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: mms-s
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:
  1. Create yaml configuration file with sharding.configsvrMode set
  2. Start mongod -f CONF_FILE
Sprint: Sharding 9 (09/18/15)
Participants:

 Description   

If I try to run mongod 3.1.7 with sharding.configsvrMode specified in the yaml configuration file, mongod complains "Unrecognized option: sharding.configsvrMode". This does not happen if I instead specify --configsvrMode on the command line.

[tim@neurofunk dbs]$ cat cfg1/mongod.conf 
net:
  port: 9007
replication:
  replSetName: csrs
sharding:
  clusterRole: configsvr
  configsvrMode: sccc
storage:
  dbPath: /Users/tim/dbs/cfg1
[tim@neurofunk dbs]$ /tmp/mms-automation/test/versions/mongodb-osx-x86_64-3.1.7/bin/mongod -f cfg1/mongod.conf 
Unrecognized option: sharding.configsvrMode
try '/tmp/mms-automation/test/versions/mongodb-osx-x86_64-3.1.7/bin/mongod --help' for more information
[tim@neurofunk dbs]$ 



 Comments   
Comment by Githook User [ 11/Sep/15 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-20330 sharding.configsvrMode option not recognized when specified in yaml file
Branch: master
https://github.com/mongodb/mongo/commit/e2dc9dbab2c7b02c3ae33f35f37cdaf3b7dc9b4d

Comment by Timothy Olsen (Inactive) [ 09/Sep/15 ]

Still unrecognized:

[tim@neurofunk dbs]$ cat cfg1/mongod.conf
net:
  port: 9007
replication:
  replSetName: csrs
sharding:
  clusterRole: configsvr
  sharding:
    configsvrMode: sccc
storage:
  dbPath: /Users/tim/dbs/cfg1
[tim@neurofunk dbs]$ /tmp/mms-automation/test/versions/mongodb-osx-x86_64-3.1.7/bin/mongod -f cfg1/mongod.conf 
Unrecognized option: sharding.sharding.configsvrMode
try '/tmp/mms-automation/test/versions/mongodb-osx-x86_64-3.1.7/bin/mongod --help' for more information
[tim@neurofunk dbs]$ 

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