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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Client
    • None
    • 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

        Activity

          People

            Unassigned Unassigned
            jenna Jenna deBoisblanc
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: