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

Allow slaveOk reads while in drain mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.12, 3.3.9
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v3.2
    • Repl 15 (06/03/16), Repl 16 (06/24/16), Repl 2016-10-31

    Description

      Nodes in drain mode with slaveOk specified should be able to accept reads. Currently, you get a "node is recovering" error instead. The logic in Command::execCommand() needs to be tightened up when detecting nodes actually in RECOVERING state versus PRIMARY but can't do writes (otherwise known as 'drain mode').

      Attachments

        Issue Links

          Activity

            People

              siyuan.zhou@mongodb.com Siyuan Zhou
              milkie@mongodb.com Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: