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

Vote requester cannot be cancelled if it has finished

    • Fully Compatible
    • ALL
    • v4.4
    • Repl 2020-05-18
    • 28

      Cancelling vote requester as part of election cancellation assumes the election will not continue. However if the vote requester has already collected sufficient votes by the time cancel() is called, cancel() will be a no-op since the finish event has been signaled. As a result, the election will continue because nothing prevents the finish event to trigger the scheduled next step.

      We need to coordinate cancelling and winning election under the replication mutex so that the cancelled election cannot continue.

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: