Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
1.6.2
-
None
-
None
-
a) 4 replica-set nodes running according to rs.status() are all healthy
(ip096=172.29.1.96, ip108=172.29.1.108, ip119=172.29.1.119, ip120=172.29.1.120)
b) primary is ip096 (attached log is taken from primary)
c) adding 5th node (ip121=172.29.1.121)
d) all using standard ports (27017)
e) ruby 1.9.2
f) mongo drivera) 4 replica-set nodes running according to rs.status() are all healthy (ip096=172.29.1.96, ip108=172.29.1.108, ip119=172.29.1.119, ip120=172.29.1.120) b) primary is ip096 (attached log is taken from primary) c) adding 5th node (ip121=172.29.1.121) d) all using standard ports (27017) e) ruby 1.9.2 f) mongo driver
-
Linux
Description
Hi, I'm trying to use Ruby to configure MongoDB replica set and seems that there is a bug while trying to eval rs.add.
When trying to use db.eval to run rs.add() from Ruby script I'm getting following error:
{"retval"=>
, "ok"=>1.0}
Log file (primary) shows following error (full connection log is attached as "log_rsadd_using_ruby.txt"
Fri Sep 10 16:47:31 [conn71] admin Assertion failure !dbMutex.isWriteLocked() db/repl/heartbeat.cpp 115
Fri Sep 10 16:47:31 [conn71] replSet cmufcc requestHeartbeat ip096:27017 : 0 assertion db/repl/heartbeat.cpp:115
Fri Sep 10 16:47:31 [conn71] admin Assertion failure !dbMutex.isWriteLocked() db/repl/heartbeat.cpp 115
Fri Sep 10 16:47:31 [conn71] replSet cmufcc requestHeartbeat ip108 : 0 assertion db/repl/heartbeat.cpp:115
Fri Sep 10 16:47:31 [conn71] replSet replSetReconfig exception: need most members up to reconfigure, not ok : ip108
It worked when I tried to add member using mongo shell using the same rs.add(), so I'm sure all members were up.