Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-398

If mongod node is up in a broken state, driver will not try other seed nodes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      Steps to reproduce:

      • Start with 3-node replica set, running on 127.0.0.1:8001, 127.0.0.1:8002, 127.0.0.1:8003. Have 127.0.0.1:8003 be the master.
      • Run m = Mongo::ReplSetConnection.new(['127.0.0.1', 8001], ['127.0.0.1', 8002], ['127.0.0.1', 8003]). Run a query.
      • From :8003, do rs.remove('127.0.0.1:8001')
      • From :8003, do rs.stepDown() to force the driver to reconnect.
      • Try running another query. It will fail with "Mongo::ConnectionFailure: Failed to connect to primary node." because :8001 is still up and thinks it's a replica set (in my testing, it's now in STARTUP mode).

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            gdb Greg Brockman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: