Commit Graph

147 Commits

Author SHA1 Message Date
Kyle Banker f3fbb98fa8 RUBY-314 replica set connection and test cleanup 2011-08-25 11:27:58 -04:00
Kyle Banker 1090dd3873 RUBY-314 initial implementation of replica set health checking via background thread 2011-08-24 18:34:00 -04:00
Kyle Banker 3027e29f46 Simpify replica set connection code. 2011-08-16 16:47:07 -04:00
Kyle Banker 3a602e1227 minor: Deprecate :timeout for :pool_timeout 2011-06-15 16:17:42 -04:00
Kyle Banker b0d5df72fa RUBY-269 RUBY-275 added connect_timeout option 2011-06-15 14:20:11 -04:00
Kyle Banker 505bc68aab minor: RUBY-257 note log_message is a no-op on Connection#receive_message. 2011-05-10 14:35:51 -04:00
Kyle Banker 604d0f60ed RUBY-261 Cursor#close hits secondary when appropriate. 2011-05-10 14:21:23 -04:00
Kyle Banker 3509926071 Remove Connection#reset_connection (private) and deprecate
ReplSetConnection#reset_connection (public)
2011-03-29 12:18:58 -04:00
Kyle Banker a6cc09e50c RUBY-236 more timeout tweaks and tests 2011-03-29 11:46:29 -04:00
Kyle Banker f3174550b7 RUBY-236 Create timeout block only when timeout is set 2011-03-29 11:06:46 -04:00
Kent Sibilev c9da58965a properly log sorting option 2011-03-28 11:18:14 -04:00
Kyle Banker e49d50acc2 RUBY-236 set op_timeout for socket receive timeouts 2011-03-28 11:09:27 -04:00
Kyle Banker 272d4835a7 RUBY-252 RUBY-237 re-add Connection#host and Connection#port 2011-03-23 16:34:42 -04:00
Mauro Pompilio e64f91e013 Implementation of the 'ping' command. Probably better suited for the 'active?' method. 2011-03-04 10:51:18 -05:00
Mauro Pompilio 1ad3285767 Add a mechanism to check if the connection is active/healthy. 2011-03-03 10:17:47 -05:00
Kyle Banker ed44a7490c Improved replica set failover tests. A few
improved exception messages.
2011-02-15 16:48:29 -05:00
Kyle Banker 0c574b9975 minor: alias Connection#reconnect to Connection#connect 2011-02-02 11:36:56 -05:00
Kyle Banker 9c83ca6b3e minor style and doc fixes. warning about logging performance issues. 2011-01-31 15:51:39 -05:00
Steve Sloan 8a7296599b Refactored logging of DB operations to use Connection#instrument.
This allows for easy overriding, e.g. to ActiveSupport notifications.
2011-01-31 15:13:12 -05:00
Kyle Banker 7c4740c47c RUBY-232 handle authentication with connection pooling 2011-01-31 14:47:38 -05:00
Kyle Banker fab538ed5e minor: alias #read_primary? with #primary? 2011-01-17 13:37:41 -05:00
Kyle Banker 0d91faf6b1 RUBY-226 minor: license update 2011-01-17 12:26:32 -05:00
Kyle Banker af43e9c2ce RUBY-255 2011-01-17 12:06:03 -05:00
Kyle Banker a197ea7852 RUBY-219 minor: use opts instead of options throughout 2011-01-05 11:30:20 -05:00
Kyle Banker 4d2d0a26af minor: docs 2011-01-03 14:06:41 -05:00
Kyle Banker 4e5b1a7d23 RUBY-205 RUBY-150 Support new connection URI options 2010-12-30 15:40:50 -05:00
Kyle Banker 9da68bb3db RUBY-189 use result of ismaster's maxBsonObjectSize 2010-12-29 18:06:31 -05:00
Kyle Banker b77b3fe1e6 RUBY-215 added Connection#read_primary? and ReplSetConnection#read_primary? 2010-12-29 13:01:05 -05:00
Kyle Banker 70135a6b67 minor: docs 2010-12-15 14:15:49 -05:00
Kyle Banker 6196c8728a RUBY-206 handle wtimeout behavior on 1.7.3 2010-12-15 14:15:20 -05:00
Kyle Banker 7ee45f4340 Removed three unused methods from Connection 2010-12-15 12:41:33 -05:00
Kyle Banker 9ea8fe98b7 minor: cleanup and organization of Connection classes 2010-12-15 12:36:43 -05:00
Kyle Banker 39b9656fc4 Fixed request id checking for threaded inserts. 2010-12-15 12:12:51 -05:00
Kyle Banker 5860265cc9 Merge branch 'repl_set_connection' 2010-12-14 17:40:49 -05:00
Kyle Banker 7629cf30f0 Ensure that we close connection if receive raises any errors. 2010-12-14 15:53:59 -05:00
Kyle Banker 236d4a821f More connection refactoring. Updates to repl_set_manager. 2010-12-14 13:14:45 -05:00
Kyle Banker 6db5bb2f51 Test request and response ids match 2010-12-13 17:54:28 -05:00
Kyle Banker 27b410f869 ReplSetConnection updates 2010-12-13 14:07:32 -05:00
Kyle Banker 08b7cddc81 Initial ReplSetConnection checking. Refactoring. 2010-12-10 16:00:35 -05:00
Kyle Banker b63250e6e4 Fix for connections to replica sets with 1 secondary and 1 arbiter 2010-12-10 11:12:18 -05:00
Kyle Banker 5930c500b4 RUBY-208 test for connection failure. Minor test fix. 2010-11-30 12:36:45 -05:00
Kyle Banker 1a14156206 minor: cleanup 2010-11-29 14:06:38 -05:00
Kyle Banker 8aaed130d6 Cleanup for distributed reads on replica sets. 2010-11-24 13:49:34 -05:00
Kyle Banker c5862da061 minor: test fix 2010-11-23 13:37:29 -05:00
Kyle Banker add9779fa0 Select secondary read node randomly 2010-11-19 18:26:38 -05:00
Kyle Banker 1e57ca90e1 Initial commit for reads from rs secondaries 2010-11-16 15:43:59 -05:00
Kyle Banker ced3bfbfe8 Update and remove return error object in safe mode 2010-11-09 13:07:01 -05:00
Kyle Banker 68af3dbe8f Allow the setting of safe mode globally on the Connection,
DB, and Collection levels. The safe mode setting will
automatically be inherited down the hierarchy Connection ->
DB -> Collection -> (insert, update, remove). This default
can be overridden at any time. Connection#safe, DB#safe, and
Collection#safe will yield the current default value.
2010-11-03 17:36:08 -04:00
Kyle Banker f7d151c8dc minor: doc fixes 2010-11-03 15:32:19 -04:00
Kyle Banker d6f8f9d41a Allow specification of replica set name on connect.
Raise ReplicaSetConnectionError if expected name doesn't match set.
2010-11-03 15:12:15 -04:00