Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7541

mongos should be able to read from secondaries when there is no master

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Client
    • Labels:
      None
    • Environment:
      2.2.0

      Description

      2 node replica set in shard s2. Take down the primary so there's no longer a majority. It's possible to connect to the remaining node and do slaveOk() reads. It is not possible, however, to read from the secondary using mongos, even when you set read preference to "secondary":

      mongos> db.nov1.find().readPref("secondary")
      error: {
         "$err" : "socket exception [CONNECT_ERROR] for s2/localhost:47017,localhost:47018",
         "code" : 11002
      }

      This is related, but think overall a different issue than the startup problem.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: