Differentiate recovery from "not master"

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 1.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A secondary in a replica set was sent a QueryMessage with the SlaveOk flag set, and it responded with the QueryFailure flag set and $err = "not master". Apparently "not master" can be returned for multiple reasons (not just because a query is sent to a secondary without setting the SlaveOk flag); for example: if the secondary is in recovery mode it responds to queries with "not master". It would be helpful to the caller (and/or driver) to be able to tell the difference between a real "not master" and other things blocking a query like "in recovery mode".

            Assignee:
            Kristina Chodorow (Inactive)
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: