repl set primary won't elect itself is a secondary is fresher

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.5
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      a replica set primary will not elect itself if a secondary is fresher. this is a "legal" situation so we must handle.

      currently it says:

      Mon Nov 29 16:33:34 [rs Manager] replSet info not electing self, we are not freshest

      so what to do. perhaps:

      (1) take over even if not freshest if the time gap or # of operations gap is small. the secondary will then roll back (we'll need to test this). when this happens, log the optimes so the operator knows what is up.
      (2) if the gap is larger, do what it does now, however, log more on the size of the gap. and we can have an override that says "take over anyway"

      easy to reproduce, i just tried.

            Assignee:
            Kristina Chodorow (Inactive)
            Reporter:
            Dwight Merriman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: