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

Error code 13135 running rs.reconfig()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.5
    • None
    • None
    • rhel6
    • ALL
    • Hide

      On the primary, I do

      use admin;
      db.auth(...);
      conf = rs.conf();

      set conf to:

      {
      	"_id" : "sprawk",
      	"version" : 4,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "sture.transmachina.net:27017",
      			"priority" : 2,
      			"tags" : {
      				"mem" : 40,
      				"disk" : "spinning",
      				"use" : "Unit"
      			}
      		},
      		{
      			"_id" : 1,
      			"host" : "haga.transmachina.net:27017",
      			"priority" : 2.5,
      			"tags" : {
      				"mem" : 64,
      				"disk" : "spinning"
      			}
      		},
      		{
      			"_id" : 2,
      			"host" : "oden.transmachina.net:27017",
      			"arbiterOnly" : true
      		},
      		{
      			"_id" : 3,
      			"host" : "blanche.sprawk.com:27017",
      			"tags" : {
      				"mem" : 12,
      				"disk" : "spinning",
      				"use" : "Example"
      			}
      		}
      	]
      }

      get the error:

       
      sprawk:PRIMARY> rs.reconfig(conf);
      {
      	"errmsg" : "exception: bad config for member[0] wrong type for field (mem) 1 != 2",
      	"code" : 13135,
      	"ok" : 0
      }

      I looked up the error code at https://github.com/mongodb/mongo/blob/master/docs/errors.md but was blank.

      Show
      On the primary, I do use admin; db.auth(...); conf = rs.conf(); set conf to: { "_id" : "sprawk", "version" : 4, "members" : [ { "_id" : 0, "host" : "sture.transmachina.net:27017", "priority" : 2, "tags" : { "mem" : 40, "disk" : "spinning", "use" : "Unit" } }, { "_id" : 1, "host" : "haga.transmachina.net:27017", "priority" : 2.5, "tags" : { "mem" : 64, "disk" : "spinning" } }, { "_id" : 2, "host" : "oden.transmachina.net:27017", "arbiterOnly" : true }, { "_id" : 3, "host" : "blanche.sprawk.com:27017", "tags" : { "mem" : 12, "disk" : "spinning", "use" : "Example" } } ] } get the error:   sprawk:PRIMARY> rs.reconfig(conf); { "errmsg" : "exception: bad config for member[0] wrong type for field (mem) 1 != 2", "code" : 13135, "ok" : 0 } I looked up the error code at https://github.com/mongodb/mongo/blob/master/docs/errors.md but was blank.

    Description

      Error code 13135 when adding tags to a RS config

      Attachments

        Activity

          People

            scotthernandez Scott Hernandez (Inactive)
            niccottrell Nic Cottrell (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: