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

Confusing info message from initiate on removed member

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • RPL 0 3/13/15

      The info2 message is confusing below.

      > rs.initiate()
      {
      	"info2" : "no configuration explicitly specified -- making one",
      	"me" : "pans-2.local:27017",
      	"info" : "try querying local.system.replset to see current configuration",
      	"ok" : 0,
      	"errmsg" : "already initialized",
      	"code" : 23
      }
      > rs.status()
      {
      	"state" : 10,
      	"stateStr" : "REMOVED",
      	"uptime" : 1926,
      	"optime" : Timestamp(1417805047, 1),
      	"optimeDate" : ISODate("2014-12-05T18:44:07Z"),
      	"replCoord" : "impl",
      	"ok" : 0,
      	"errmsg" : "Our replica set config is invalid or we are not a member of it",
      	"code" : 93
      }
      > db.isMaster()
      {
      	"ismaster" : false,
      	"secondary" : false,
      	"info" : "Does not have a valid replica set config",
      	"isreplicaset" : true,
      	"rbid" : 1325014456,
      	"maxBsonObjectSize" : 16777216,
      	"maxMessageSizeBytes" : 48000000,
      	"maxWriteBatchSize" : 1000,
      	"localTime" : ISODate("2014-12-09T01:53:48.191Z"),
      	"maxWireVersion" : 3,
      	"minWireVersion" : 0,
      	"ok" : 1
      }
      
      

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: