Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1216

connectivity to mongodb cluster when it becomes read only

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 3.2.6
    • Component/s: All Tools
    • Labels:
      None
    • Environment:
      redhat linux v6.6
    • v3.2

      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?

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            alvin.zhang@tdsecurities.com Alvin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: