Jason Lewis
unread,Nov 27, 2012, 2:11:22 PM11/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
I'm using the lastest perl driver and find_master doesn't behave as I expect.
If I do this, everything works:
$mongo3 is the master.
my $conn = MongoDB::Connection->new( host => "mongodb://$mongo3:$port",
"port" => $port,
query_timeout => "-1",
"find_master" => 1
);
This does not work:
my $conn = MongoDB::Connection->new( host =>
"mongodb://$mongo3:$port,$mongo2:$port,$mongo1:$port",
"port" => $port,
query_timeout => "-1",
"find_master" => 1
);
couldn't find master at
/usr/local/lib/perl/5.12.4/MongoDB/Connection.pm line 486.
This works:
my $conn = MongoDB::Connection->new( host =>
"mongodb://$mongo3:$port,$mongo2:$port,$mongo1:$port",
"port" => $port,
query_timeout => "-1"
);
As long is master is first and find master is off, it works. The
errors don't really help with troubleshooting. Is there something I'm
missing?
jas