Replica set fails to add member

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.6.2
    • Component/s: None
    • None
    • Environment:
    • Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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"=>

      {"assertion"=>"need most members up to reconfigure, not ok : ip108", "assertionCode"=>13144, "errmsg"=>"db assertion failure", "ok"=>0.0}

      , "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.

        1. add_rs_member.rb
          0.4 kB
        2. log_rsadd_using_ruby.txt
          2 kB
        3. log_rsadd_using_shell.txt
          2 kB

            Assignee:
            Kyle Banker (Inactive)
            Reporter:
            Jozef Sovcik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: