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

Inconsistent (?) handling of replSet in getCmdLineOpts.parsed

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0-rc3
    • Component/s: Admin
    • Replication
    • ALL

      In a mongod started up with the following argv, I would expect the parsed field to contain replication.replSetName not replication.replSet.

      I realize that it is debatable whether or not the current behavior is wrong. However, I would expect the output of parsed to match the YAML-style in all cases, not be a mixture of YAML-style and legacy-style.

      backup_test:PRIMARY> db.runCommand('getCmdLineOpts')
      {
      	"argv" : [
      		"mongod",
      		"--port=27000",
      		"--replSet=backup_test",
      		"--dbpath=/Users/cailin/Documents/code/mms/data/db/replica/backup_test/backup_test_0",
      		"--logpath=/Users/cailin/Documents/code/mms/data/db/replica/backup_test/backup_test_0/mongodb.log",
      		"--logappend",
      		"--nojournal"
      	],
      	"parsed" : {
      		"net" : {
      			"port" : 27000
      		},
      		"replication" : {
      			"replSet" : "backup_test"
      		},
      		"storage" : {
      			"dbPath" : "/Users/cailin/Documents/code/mms/data/db/replica/backup_test/backup_test_0",
      			"journal" : {
      				"enabled" : false
      			}
      		},
      		"systemLog" : {
      			"destination" : "file",
      			"logAppend" : true,
      			"path" : "/Users/cailin/Documents/code/mms/data/db/replica/backup_test/backup_test_0/mongodb.log"
      		}
      	},
      	"ok" : 1
      }
      

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            cailin.nelson@mongodb.com Cailin Nelson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: