Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1770

Replica set fails to add member

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.2
    • None
    • None
    • 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"=>

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

      Attachments

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

        Activity

          People

            kbanker Kyle Banker
            jozef Jozef Sovcik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: