[SERVER-2463] update rs.conf() to always display votes in a replica set Created: 01/Feb/11  Updated: 26/Aug/14  Resolved: 14/Aug/14

Status: Closed
Project: Core Server
Component/s: Admin, Replication
Affects Version/s: 1.6.3
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Brennan Pang Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

any


Issue Links:
Depends
Duplicate
duplicates SERVER-11911 update rs.conf() to always display al... Closed
Participants:

 Description   

When using the rs.conf() helper, it should always display the number of votes, even if it is the default of 1 and even if it's a an arbiter or priority 0. It currently does not display votes if they are set to 1.

It'd be great to see something like this:

{
        "_id" : "replicaset",
        "version" : 5,
        "members" : [
                {
                        "_id" : 0,
                        "host" : "ra:27017",
                        "votes" : 1
                },
                {
                        "_id" : 1,
                        "host" : "rb:27017",
                        "votes" : 1
                },
                {
                        "_id" : 2,
                        "host" : "rc:27017",
                        "votes" : 1
                },
                {
                        "_id" : 3,
                        "host" : "arbiter:29001",
                        "arbiterOnly" : true,
                        "votes": 1
                },
                {
                        "_id" : 4,
                        "host" : "rd:27017",
                        "priority" : 0,
                        "slaveDelay" : 28800,
                        "votes": 1
                }
        ]
}


Generated at Thu Feb 08 03:00:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.