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

Migration coordinator recovery task should bump the txnNumber on the session used to send _recvChunkStart

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2020-02-10, Sharding 2020-02-24
    • 43

      While working on SERVER-45339, we re-realized why we originally wanted to make the recovery task bump the txnNumber used to send _recvChunkStart.

      It is to prevent an old donor primary from sending _recvChunkStart after the new donor primary has already completed the recovery, because this would cause a new range deletion task to be written on the recipient that would never get cleaned up.

      This ticket should make the donor persist the lsid and txnNumber used to send _recvChunkStart again, and make the recovery task do a dummy write using the lsid and txnNumber + 1 on the recipient before sending the decision to the recipient.

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: