This fixes the errors that were occurring when instantiating a MongoShardedClient when a MONGODB_URI environment variable is present. This also fixes MongoShardedClient.from_uri to properly get a MongoShardedClient connection from the URIParser. [ RUBY-541 ]
This will parse and add read preference options from the uri parser and add them to the connection options when asking for them. This makes the assumption that we must be in a replica set to set the options, and will override the slaveOk flag if it is also present. The fix for RUBY-541 will change this slightly to assume it can be set for replica sets and sharded clients. [ RUBY-547 ]
SimpleCov must load before our code - and when properly configured, a coverage report summary line will print after each test suite run gem 'test-unit' is explicitly needed in test_helper.rb for Test::Unit::TestCase.shutdown Test::Unit::TestCase.shutdown is run to clean up after an individual test Test::Unit::TestCase.shutdown is run once for replica set via mock test suite rake tasks should be executed (not invoked) because we want to re-execute them, once for with-ext (test:ext) and once without-ext (test:ruby) Initial coverage is 79.78%
unstable-release moved to 2.4.0-rc0 where maxMessageSizeBytes changed to 48000000
In the case of a sharded client, all of our nodes that are provided should be mongos nodes, and thus all should be primary. The read preference thusly is not handled by the driver, but by the mongos server and all read operations should pass through the primary mongos. The case where we have multiple mongos is not handled here, as the driver does not currently support having multiple primary nodes configured. [ RUBY-542 ]
…Exceed Max Pool Size" This reverts commit 284b69c.
…ax Pool Size The following does not read well but is (backwards) correct lib/mongo/util/pool_manager.rb:147 def validate_existing_member(member) if member.config return false
…ng something more important.