× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
rkshakya reported 2013-05-20T07:13:47Z  · last modified 2013-06-25T07:34:46Z

ADS not able to connect to secondary member when primary of repl set is down


Priority Major
Complexity Unknown
Component MongoSQL
Version 14.0

Tested on ADS 14-alpha-16 on Ubuntu 10.04.

ADS is unable to connect to a secondary member when primary member of the replica set is down even after we set 'slaveOK=true' and 'readPreference=secondary' in driver settings. (Pls refer to the attached replset_conn_error.png)

Steps to reproduce this issue:

1) Configure and activate a 3 member replica set using following type of command

mongod --port 27017 --dbpath /home/ravi/replica/1 -replSet rs0 --auth

mongod --port 27018 --dbpath /home/ravi/replica/2 -replSet rs0 --auth

mongod --port 27020 --dbpath /home/ravi/replica/3 -replSet rs0 --auth

2) Now shutdown 2 of these mongod processes so that there is a single remaining mongod process serving as secondary. (Verified using rs.conf() from mongo shell)

3) Try to connect ADS to this replica set specifying replicaset server information as localhost:27017,localhost:27018,localhost:27020 and specifying parameters 'slaveOK=true' and 'readPreference=secondary' on Drivers tab of 'Register Server' window.

Actual result:

a) An error is thrown saying 'can't find a master' and 'unable to create socket connection on localhost:27017'

Expected result:

a) ADS should have connected to a last remaining secondary member for read operations as we have specified appropriate params in Drivers page.

(Through mongo shell we are able to connect to this secondary using following commands : mongo --port 27020  and then rs.slaveOk()  )

 

 

3 attachments

Issue #9032

Closed
Fixed
Resolved 2013-06-18T14:02:17Z
 
 
Completion
No due date
Fixed Build ADS 14.0.0-beta-32 (mongo-jdbc 1.2.1)
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017