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

Driver does not stop requests to a Secondary during a collection compaction and after a rs.remove/rs.add, the application needs to be restarted

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.2
    • Affects Version/s: 1.6.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      ruby 1.9.3, mongo 2.0.6 heroku cedar stack

      Just started using the read: :secondary option.

      Tonight, I tried to run a compact on one of our collections in one of our secondaries. And the reads continued to be handed over to that node and there were a lot of timeouts, of course.

      After some time I decided to rs.remove that node until the compaction is done. But the connections were still trying to reach that node, so I had to restart the entire application, and it acted as expected.

      After the compaction, I did added back the secondary, expecting to see it been hit again, but, it isn't, so I have to restart the app again. Isn the driver supposed to handle this ADD() and REMOVE() cases? And how about the COMPACT of a collection, when the database is marked as RECOVERING ?

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            miagao Luciano Issoe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: