[SERVER-1930] Arbiter does not become secondary after reconfig Created: 12/Oct/10  Updated: 12/Jul/16  Resolved: 20/Oct/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.6.3
Fix Version/s: 1.7.2

Type: Bug Priority: Major - P3
Reporter: Alexander Azarov Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 64, MacOS 64


Operating System: ALL
Participants:

 Description   

> rs.initiate({_id: 'test',
... members: [
... {_id: 0, host: 'localhost:27017'},
... {_id: 1, host: 'localhost:27018'},
... {_id: 2, host: 'localhost:27019', arbiterOnly: true}
... ]})
{
"info" : "Config now saved locally. Should come online in about a minute.",
"ok" : 1
}

> rs.conf()
{
"_id" : "test",
"version" : 1,
"members" : [

{ "_id" : 0, "host" : "localhost:27017" }

,

{ "_id" : 1, "host" : "localhost:27018" }

,

{ "_id" : 2, "host" : "localhost:27019", "arbiterOnly" : true }

]
}

> rs.status()
{
"set" : "test",
"date" : "Tue Oct 12 2010 19:00:24 GMT+0400 (MSD)",
"myState" : 1,
"members" : [

{ "_id" : 0, "name" : "Alaz-MBP.local:27017", "health" : 1, "state" : 1, "self" : true }

,

{ "_id" : 1, "name" : "localhost:27018", "health" : 1, "state" : 2, "uptime" : 37, "lastHeartbeat" : "Tue Oct 12 2010 19:00:23 GMT+0400 (MSD)" }

,

{ "_id" : 2, "name" : "localhost:27019", "health" : 1, "state" : 7, "uptime" : 41, "lastHeartbeat" : "Tue Oct 12 2010 19:00:23 GMT+0400 (MSD)", "errmsg" : "." }

],
"ok" : 1
}

*****************

> db.runCommand( { replSetReconfig: {_id: 'test',
... version: 2,
... members: [
... {_id: 0, host: 'localhost:27017'},
... {_id: 1, host: 'localhost:27018'},
... {_id: 2, host: 'localhost:27019', priority: 0}
... ]} })

{ "ok" : 1 }

> rs.conf()
{
"_id" : "test",
"version" : 2,
"members" : [

{ "_id" : 0, "host" : "localhost:27017" }

,

{ "_id" : 1, "host" : "localhost:27018" }

,

{ "_id" : 2, "host" : "localhost:27019", "priority" : 0 }

]
}

> rs.status()
{
"set" : "test",
"date" : "Tue Oct 12 2010 19:02:28 GMT+0400 (MSD)",
"myState" : 1,
"members" : [

{ "_id" : 0, "name" : "Alaz-MBP.local:27017", "health" : 1, "state" : 1, "self" : true }

,

{ "_id" : 1, "name" : "localhost:27018", "health" : 1, "state" : 2, "uptime" : 32, "lastHeartbeat" : "Tue Oct 12 2010 19:02:26 GMT+0400 (MSD)" }

,

{ "_id" : 2, "name" : "localhost:27019", "health" : 1, "state" : 7, "uptime" : 32, "lastHeartbeat" : "Tue Oct 12 2010 19:02:26 GMT+0400 (MSD)", "errmsg" : "." }

],
"ok" : 1
}



 Comments   
Comment by auto [ 20/Oct/10 ]

Author:

{'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}

Message: allow arbiter to become secondary & vice versa SERVER-1930
http://github.com/mongodb/mongo/commit/45b08e54aac4d40c5f52802ad95c33beaaef79ea

Generated at Thu Feb 08 02:58:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.