-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
Affects Version/s: 1.1.4
-
Component/s: None
-
None
-
Environment:mongod
db version v1.6.3, pdfile version 4.5
sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
client
mongo (1.1.4)
OS
10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386
ruby:
interpreter: "ruby"
version: "1.9.2p0"
date: "2010-08-18"
platform: "x86_64-darwin10.4.0"
patchlevel: "2010-08-18 revision 29036"
full_version: "ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]"
mongod db version v1.6.3, pdfile version 4.5 sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41 client mongo (1.1.4) OS 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386 ruby: interpreter: "ruby" version: "1.9.2p0" date: "2010-08-18" platform: "x86_64-darwin10.4.0" patchlevel: "2010-08-18 revision 29036" full_version: "ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]"
-
None
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
?I've submitted a pull request for this issue:
https://github.com/mongodb/mongo-ruby-driver/pull/14
Note the following config record containing hosts without the [optional](http://www.mongodb.org/display/DOCS/Replica+Set+Configuration) ":port" specified. When a connection is made, the discovery code will set the port to 0 when the host string is split on ":".
I also noticed that @arbiters is not being set for this config record, but I didn't attempt a fix for this.
>db.runCommand("isMaster")
{ "setName" : "stage1", "ismaster" : true, "secondary" : false, "hosts" : [ "mongo01.customink.com", "mongo02.customink.com" ], "arbiters" : [ "oa.customink.com" ], "ok" : 1 }