-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.8.2
-
Component/s: None
-
None
There are two problems here:
- MongoShardedClient#from_uri and URIParser#connection do not support returning a MongoShardedClient instance. This should either be fixed, or an exception should be thrown when this is used from a MongoShardedClient instance.
- When specifying the connection string URI from ENV['MONGODB_URI'], MongoShardedClient.new raises an exception when you specify more than one mongos.
ENV['MONGODB_URI'] = 'mongodb://brandonblack-mbpr.local:3333,brandonblack-mbpr.local:3334' client = Mongo::MongoShardedClient.new => NoMethodError: undefined method `split' for #<Array:0x007fecc405a3d0>
- is duplicated by
-
RUBY-512 Add a sharded flag to URIParser
- Closed