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

If replSetUpdatePosition command fails due to NodeNotFound, resend a handshake

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.8
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL

      First we need to get rid of the invariant that fails if we get an updatePosition command for a node we haven't gotten a handshake from yet. It could be a dassert, but in production code we should just return NodeNotFound or some other recognizable error code. Then on the other side, the node that sent the replSetUpdatePosition command should detect that code and resend not just the update position but also first the handshake.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: