-
Type:
Improvement
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.0.0
-
Component/s: Replication
-
None
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
In MongoDB 2.6, we alerted users if they added a replica set member when it was down. To aid in automation, we should consider restoring similar functionality:
replset:PRIMARY> rs.add('1.2.3.7:27017') { "down" : [ "1.2.3.6:27017", "1.2.3.7:27017" ], "ok" : 1 }
Original Summary
rs.addArb does not return an error when host is unavailable
Original Description
I am using MongoDB Enterprise Version 3.4.6.
rs.addArb(host)
return
MongoDB shell version v3.4.6 connecting to: mongodb://127.0.0.1:27017/admin MongoDB server version: 3.4.6 { "ok" : 1 }
when host is not available.
It should have the same behaviour as rs.add(host).
=> Difficult to catch the error during automation.