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

If replSetUpdatePosition command fails due to NodeNotFound, resend a handshake

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.8
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: