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

Cancelling heartbeats doesn't work after network operation scheduled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Repl 2017-02-13, Repl 2017-03-06, Repl 2017-03-27
    • Linked BF Score:
      0

      Description

      When cancelling a heartbeat after it has scheduled the network operation, cancel doesn't work correctly from the client perspective because the handle that is cancelled is not the network operation. This is due to how we schedule work which then schedules the network operation, which does the callback (and reschedules more the next heartbeat).

      One idea to fix this would be to keep a CancellableHandle which gets replaced with the newly scheduled network event so that a client can cancel the logical operation at any time.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: