Allow slaveOk reads while in drain mode

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.12, 3.3.9
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v3.2
    • Repl 15 (06/03/16), Repl 16 (06/24/16), Repl 2016-10-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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').

              Assignee:
              Siyuan Zhou
              Reporter:
              Eric Milkie
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: