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

rs.reconfig fails with exception: assertion src/mongo/db/repl/rs_initiate.cpp:125

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.4
    • Component/s: None
    • Labels:
      None
    • Environment:
      RHEL5
    • ALL

      rs.config() gives

      {
      	"_id" : "sprawk",
      	"version" : 1,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "sture.transmachina.net:27017"
      		},
      		{
      			"_id" : 1,
      			"host" : "sprawk.member0.mongolayer.com:27017",
      			"priority" : 0
      		},
      		{
      			"_id" : 2,
      			"host" : "oden.transmachina.net:27017",
      			"arbiterOnly" : true
      		}
      	]
      }
      

      but sprawk.member0.mongolayer.com no longer exists. We have a new node on our own server. So I run rs.reconfig

      rs.reconfig( 
           {"_id": "sprawk", "version" : 2, "members": [ 
                {"_id": 0, "host": "sture.transmachina.net:27017", priority: 2}, 
                {"_id": 1, "host": "haga.transmachina.net:27017", priority: 1}, 
                {"_id": 2, "host": "oden.transmachina.net:27017", "arbiterOnly": true} 
           ] } );
      

      but get

      {
      	"errmsg" : "exception: assertion src/mongo/db/repl/rs_initiate.cpp:125",
      	"code" : 0,
      	"ok" : 0
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            niccottrell Nic Cottrell (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: