-
Type:
Sub-task
-
Resolution: Done
-
Priority:
Trivial - P5
-
None
-
Affects Version/s: 3.2.6
-
Component/s: All Tools
-
None
-
Environment:redhat linux v6.6
when connect to mongodb via mongo and java client using replicaset connection uri like:
mongo -u mongosa --authenticationDatabase admin -p --host repl1/10.155.36.126:27017,10.155.36.130:27017,10.155.36.90:27017,10.155.16.108:27017,10.155.16.184:27017
It appears that the connection cannot be established when the set becomes read only(when set loses quorum) with following error:
2016-06-03T03:24:10.118-0400 W NETWORK [thread1] Failed to connect to 10.87.79.207:27017, reason: errno:111 Connection refused
however, the connection can be established to individual suviving node.
is this expected behavior or is there some way to make the replicaset uri to establish connection under read only mode?